This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes can get label on second line Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "can get label on second line" Watch "can get label on second line" New topic
Author

can get label on second line

Raja Mothi
Greenhorn

Joined: Nov 18, 2004
Posts: 2
When I insert a label on frame I can insert on only one line how to get on next line is there any escape sequence like???

Like I want
My name is jay.
I am 21 years old

but I am getting
My name is jay. I am 21 years old

Is there any way by which I can get label on second line

Regards
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
If you mean JLabel

Raja Mothi
Greenhorn

Joined: Nov 18, 2004
Posts: 2
Michael

You said this is in case of label
So what about othe components?
Can you please put light on this too

Regards
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
>So what about othe components?

Such as?
(the best way to find out is to experiment)
 
 
subject: can get label on second line
 
Similar Threads
problem in GridBagLayout
String Tokenizer Question
Why does cons remain equal to null?
s:iterator, can you save values other control tags like s:label? POJO
MySql array (workarounds?)