我的程序中有两个按钮
JButton button1 = new JButton();
button1.setText("First Button");
JButton button2 = new JButton("Second Button");
Run Code Online (Sandbox Code Playgroud)
我试图更改按钮的LaF,我可以使用以下代码更改按钮背景颜色
UIManager.put(Button.background new color(134,201,236));
Run Code Online (Sandbox Code Playgroud)
但是当我试图更改其他键值时"Button.disabled","Button[Default+Focused+Pressed].backgroundPainter"代码对我来说不起作用.有人可以帮我如何更改使用Painter的默认键值吗?