• Post Reply Bookmark Topic Watch Topic
  • New Topic

JButton icon border

 
Andreas L
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a simple question. A border appears around my JButton Icon (not around the actual JButton, I used setBorderPainted(false) for that). Is there anybody who knows how to get rid of that?
thanx
Andreas
 
Jeff Smith
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume you're probably referring to the focus border that's painted when the button has focus. To get rid of it just call setFocusPainted( false )
Jeff
 
Andreas L
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your help, now it works fine.
Andreas
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!