File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes hi Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply locked New topic
Author

hi

hari thatikonda
Greenhorn

Joined: Sep 09, 2004
Posts: 11
hi can u place two lines with different font and size on one jlabel with ou html
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

You've already asked this here and gotten answers from some Really Smart People. HTML is the only way to get formatted text in a JLabel.

If you don't want to use HTML for some reason, then you could just use two JLabels, one on top the other, packed into a vertical Box.

I'm closing this thread; if the discussion needs to be continued, do so at the link above.


[Jess in Action][AskingGoodQuestions]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: hi
 
Similar Threads
how many weddings this summer?!
comfort care
What is life
why ?
Hi guys