Java – how to make JButton have simple flat style?

The easiest way to make JButton display only the background color? I don't need any other effects, such as border, 3D appearance or hover highlighting@ H_ 502_ 2 @ Thank you in advance

Solution

I don't know if I missed a point?

button.setBorderPainted(false);
button.setFocusPainted(false);
button.setContentAreaFilled(false);
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>