jQuery in Action, 3rd 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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "font j label" Watch "font j label" New topic

font j label

hari thatikonda

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
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

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

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
It's not a secret anymore!