Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multilinetext in JLabel  RSS feed

 
Nuzhar Khan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any body help how I can use JLabel for multilne text
thanx in advance
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nuzhar,
In swing you can have multiline label by using html tags.
for example...

and since it supports html so u can make use of other html tags.
regards
deekasha
[This message has been edited by deekasha gunwant (edited March 04, 2001).]
[This message has been edited by deekasha gunwant (edited March 04, 2001).]
[This message has been edited by deekasha gunwant (edited March 04, 2001).]
 
Nuzhar Khan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx deekasha for ur ans its really help.
but using html is a trick or only possible solution?
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nuzhar ,
It's no trick.swing supports it and we use it.Otherwise u can't have multiline labels.

regards
deeksha
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!