aspose file tools*
The moose likes Beginning Java and the fly likes JButton with multiple lines Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JButton with multiple lines" Watch "JButton with multiple lines" New topic
Author

JButton with multiple lines

Bill Norton
Greenhorn

Joined: Mar 29, 2001
Posts: 27
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

Joined: Jul 13, 2001
Posts: 269
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

Joined: May 17, 2001
Posts: 2823
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JButton with multiple lines
 
Similar Threads
Processing different ActionEvents in actionPerformed()
Feel Like I Am Starting Over
Jtable filled with JButtons each having their own ImageIcon from a SQL server
Run a Java Program
How to set the color of a button and toolbar ?