Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Formulas in the Text control

 
Marco Schrank
Greenhorn
Posts: 5
Java Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

is there a 'natural' way to get a formula output in the gui?
Let's say something like an equation (not very complex) as content of a Text control or label.
I would like to avoid to do something like transform a latex equation to a png and add it as
an ImageView.

Thanks for any hints,
Marco

P.S.: I am still stuck with javafx 1.3.
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure if JavaFX supports it.

But it would be better if you could move to JavaFX 2.0 as you know JavaFX 1.3 is no longer supported. And you would surely want to get hold of the latest developments happening.

If you still want to stick with JavaFX script - you can check out the DSL- Visage.
 
John Damien Smith
Ranch Hand
Posts: 296
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For JavaFX 2.0+ use http://www.mathjax.org/ in a webview to display math.
Some simple mathml (http://www.w3.org/Math/) equations will also work in webview.
An example of mathml usage in JavaFX is here: https://gist.github.com/1775799 "Display a Quadratic formula in JavaFX using MathML in a WebView"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic