在javaFX中显示数学公式 [英] Display Math Formula in javaFX

查看:168
本文介绍了在javaFX中显示数学公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在JavaFX中的标签中显示数学公式。
喜欢这张图片:

我想要的.jar JavaFX中的库和一个小例子。
我已经找到了一些库,但它们仅适用于Swing / AWT。我尝试了其中一些,但它们对我不起作用。

I want to know how to display math formula in a label for exemple in JavaFX. Like this picture : I want the .jar of a library and a small example in JavaFX. I already found some libraries but they are only for Swing/AWT. I tried some of them, but they don't work for me.

用Java显示奇特的方程式

推荐答案

JLaTeXMath 使用 Graphics2D API进行渲染,你可以使用 FXGraphics2D 将输出绘制到JavaFX Canvas 。有关示例代码,请参阅我对其他类似问题的回答 https://stackoverflow.com/a/25037747/2592874

Since JLaTeXMath is using the Graphics2D API for rendering, you can use FXGraphics2D to draw the output to a JavaFX Canvas. For sample code, please refer to my answer to another similar question https://stackoverflow.com/a/25037747/2592874

这篇关于在javaFX中显示数学公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆