2012-04-07 68 views
0

我正在研究Java应用程序,并设置LookAndFeel。除了JButton的默认背景颜色外,我喜欢的所有LAF。在设置外观和感觉后,设置(和其他属性)的最佳方式是什么?我不想创建自己的外观和感觉,它扩展了它......只想在我设置LAF的线后能够改变它...更改LookAndFeel的JButton的颜色

回答

0

不久后发现它。

UIManager.getDefaults().put("Button.background",new Color(0xFFFFFF));