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.
有没有办法改变复选框/单选按钮的选择颜色?
这是为 JCheckBox 执行此操作的方法
UIManager.put("CheckBox.focus",Color.RED);
这里有一个不错的工具:http: //tips4java.wordpress.com/2008/10/09/uimanager-defaults/,如果您运行 Java Web Start 程序,它将允许您浏览每个组件的键和值。