• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question abt CheckBox Label

 
thejaswini ramesh
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have a checkbox in my application.The label for this consists of to words "Local Echo".Is thr some way where in I can have the 2 words one below the other instead of next to each other?Having the words continously is making my GUI look a little bad,so i thought of pushing 'echo' below 'local' to the next line to make it look neat.(All other components are well aligned...I have used Border layout).Any suggestions?

Thanks in Advance,
Thejaswini
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use HTML in Swing widgets - use "<html>Local<br>Echo</html>" as the label text (haven't tried it, but I think it should work).

Or you could use two distinct labels and use an appropriate layout manager.
 
thejaswini ramesh
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Ilja.The code "<html>Local<br>Echo</html>" is working fine.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!