File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 42965
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.
I agree. Here's the link:
subject: creating formatted equations, sub/superscripts
It's not a secret anymore!