Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can get label on second line

 
Raja Mothi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you mean JLabel

 
Raja Mothi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>So what about othe components?

Such as?
(the best way to find out is to experiment)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic