• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to show exponents in java  RSS feed

 
Samer Telawi
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dears,
how to show the exponents in swing
like the photo
thanks
Unbenannt.JPG
[Thumbnail for Unbenannt.JPG]
 
Samer Telawi
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
also like the next photo
Unbenannt.JPG
[Thumbnail for Unbenannt.JPG]
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Swing, you can use any component that is HTML-aware and use the <sup> tag. Note that Swing is limited to one level of exponents; JavaFX WebView removes that limitation.

More about that in this thread on another forum. Note that JavaFX is already a part of the JRE.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!