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.
Displaying fancy equations with Java
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With