Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Howto make JButton with simple flat style?

whats the most simple way to make a JButton only show the background color? I don't need any other effects like borders, 3D-look or hover-highlighting.

Thanks in advance.

like image 978
c0d3x Avatar asked Dec 03 '09 10:12

c0d3x


Video Answer


1 Answers

I don't know if I have missed a point... But I usually do somtehing like this:

button.setBorderPainted(false);
button.setFocusPainted(false);
button.setContentAreaFilled(false);
like image 179
André Luiz Clinio Avatar answered Oct 12 '22 08:10

André Luiz Clinio