Java – how to make JButton have simple flat style?
•
Java
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
二维码