big*_*tie 4 java swing background jlabel uimanager
是否可以覆盖UIManager特定对象的属性?
例如,我的UI管理器有
[Label.background] => (ColorUIResource) [javax.swing.plaf.ColorUIResource[r=238,g=238,b=238]]
Run Code Online (Sandbox Code Playgroud)
我想JLabel用Color.WHITE背景制作一个.
whiteJLabel.setBackground(Color.WHITE)
Run Code Online (Sandbox Code Playgroud)
..没有效果.
whiteJLabel.setBackground(Color.WHITE)
whiteJLabel.setOpaque(true);
Run Code Online (Sandbox Code Playgroud)