Java JButton only image?

Viewed 6012

I set the icon of my button to an .png I made in photoshop, but instead of just the image being visible, then there's still the button border or what ever you wish to call it.

enter image description here

I want the button to just be:

enter image description here

3 Answers

Add this to make it perfect:button.setFocusPainted(false);

Related