Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jbutton label issue  RSS feed

 
Carl John
Ranch Hand
Posts: 47
Eclipse IDE Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm using a jbutton with some long text like "Press the Button"..

my problem is the text is hidden after "Press the.."...

But i wanna text to like this...

" press the
button" (i mean the hidden text should be in second line....)

is there any possibilities for doing this...?
button1.JPG
[Thumbnail for button1.JPG]
Jbutton
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a little bit of HTML for the label: <html>press the<br>button</html>
This is a little trick that can be used with almost all Swing components.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!