Anyone know a quick way of removing the default blue button background from a JButton? All I want to show is an image icon without the button outline and I'd rather not override the painting of the button if I can help it.
Ah! Easy when you think about it! Thanks. Actually used setBorder(BorderFactory.createEmptyBorder(0,0,0,0)) and setBackground(Color.white) but has the same effect as the solution you gave. Dunno why I didn't think of that myself!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.