我改变了我的按钮的颜色。现在我想要它的原始外观和感觉。我想将颜色改为一次我喜欢的颜色。之后,我想让按钮恢复原来的样子。如何在更改颜色后恢复按钮的原始外观颜色?
我该怎么做?
这里是改变颜色的代码 -
JButton but = JButton("Press now to up vote"); // :)
but.setBackground(Color.orange);
//code to remove this color and get the original look back ???
你怎么变了颜色阵列?任何代码? – Smit 2013-04-04 20:58:36
默认问题是regullar没有任何代码,(我是用户需要,在所有情况下要求一个SSCCE) – mKorbel 2013-04-04 21:23:51