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.
我正在尝试将 JButton 的背景颜色设置回其默认颜色“Control”。我在哪里可以找到那个颜色?谢谢你。
尝试一下
myButton.setBackground(null)
它变回默认颜色。
可能是这里的答案
如何获取 JButton 默认背景颜色?