Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a Jbutton with a rounded border

 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to have a JButton with rounded edges?

Thanks.
 
Jennifer Sohl
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a class that you can use to get rounded border :



or a class to paint a perfectly round button :

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic