wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes a Jbutton with a rounded border Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "a Jbutton with a rounded border" Watch "a Jbutton with a rounded border" New topic
Author

a Jbutton with a rounded border

Barry Brashear
Ranch Hand

Joined: Jun 05, 2001
Posts: 303
Is there a way to have a JButton with rounded edges?

Thanks.
Jennifer Sohl
Ranch Hand

Joined: Feb 28, 2001
Posts: 455
Here is a class that you can use to get rounded border :



or a class to paint a perfectly round button :

 
 
subject: a Jbutton with a rounded border