This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "creating formatted equations, sub/superscripts" Watch "creating formatted equations, sub/superscripts" New topic

creating formatted equations, sub/superscripts

Karen Nelson
Ranch Hand

Joined: Aug 19, 2005
Posts: 57
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

Joined: Mar 22, 2005
Posts: 42374
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.

Ping & DNS - my free Android networking tools app
subject: creating formatted equations, sub/superscripts