aspose file tools*
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 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 "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