This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes creating formatted equations, sub/superscripts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "creating formatted equations, sub/superscripts" Watch "creating formatted equations, sub/superscripts" New topic
Author

creating formatted equations, sub/superscripts

Karen Nelson
Ranch Hand

Joined: Aug 19, 2005
Posts: 57
Hi,
I need to put some formatted equations into an applet I'm working on. Can anyone give me pointers for how to create subscripts, superscripts, and fraction bars? I have searched with all the terms I can think of and come up with nothing. (I don't need to parse the equations, they will be hard-coded).

Thank you!! Karen.
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
There's HotEqn, which is an applet that can display formulas given to it in a TeX-ish notation. It doesn't come with source, though, but may be a starting point.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: creating formatted equations, sub/superscripts
 
It's not a secret anymore!