jQuery in Action, 2nd edition*
The moose likes Swing / AWT / SWT and the fly likes font j label Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "font j label" Watch "font j label" New topic
Author

font j label

hari thatikonda
Greenhorn

Joined: Sep 09, 2004
Posts: 11
hi i have a label that label contains two lines of text each with different size and text. how can i put 2 different ones. please write the excutable code (full)
thank u
hari
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

please write the excutable code (full)

That's not what we are here for. We are here to help you learn. Providing all your code for you teaches you nothing. If you would like specific guidence on how to achieve what you desire, please let me know.


GenRocket - Experts at Building Test Data
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
JLabels can render HTML, so if you can encode your two lines using html markup, that should work.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: font j label