• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Formulas in the Text control

 
Greenhorn
Posts: 5
Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 3225
34
IntelliJ IDE Oracle Spring Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 387
30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
 
reply
    Bookmark Topic Watch Topic
  • New Topic