Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Java(Swing)中有一个 JButton:
单击后,我在按钮周围得到这条线:
如何删除这些行?
button.setFocusPainted(false);是正确的解决方案!
button.setFocusPainted(false);