Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JButton with multiple lines

 
Bill Norton
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want a JButton with more than one line, is this possible?
I thought about using a .gif with the text I needed, but curious if there was an easier way, I am missing. Also, thought it might look weird next to other buttons if the window gets resized.
Looking forward to any ideas.
Thanks,
Bill Norton
 
Wilfried LAURENT
Ranch Hand
Posts: 269
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at "A multiline button is possible!
Can JButton create a multiline button? "

http://www.javaworld.com/javaworld/javaqa/2000-03/01-qa-button.html
 
Paul Stevens
Ranch Hand
Posts: 2823
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read somewhere that the p tag is the way to go not br like the first example at the bottom of the java world article.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic