This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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: 15299

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
subject: font j label
Similar Threads
SWT - Wrap label
cloning labels
moverover on label
dynamic size of label
Text boxes over an image