The Artima Developer Community
Sponsored Link

Java Answers Forum
Displaying exponent value without carot symbol

1 reply on 1 page. Most recent reply: May 27, 2004 6:55 AM by Charles Bell

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Ajay Singh Tomar

Posts: 3
Nickname: ajaytomar
Registered: Oct, 2003

Displaying exponent value without carot symbol Posted: May 27, 2004 6:47 AM
Reply to this message Reply
Advertisement
Hello,

I need to display Phy^2 without carot (^) symbol and 2 at the same height as ^ symbol in SWT label in Java. Please suggest some solution.

Example Line: label.setText(" * Phy^2 + ");#

Regards,
Ajay


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: Displaying exponent value without carot symbol Posted: May 27, 2004 6:55 AM
Reply to this message Reply
label.setText("<html><body> * Phy<sup>2</sup></body></html>");

Flat View: This topic has 1 reply on 1 page
Topic: Applet inside JEditorPane? Previous Topic   Next Topic Topic: Using/Automating Outlook with Java app

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use