作者hsnucsc (hsnugo)
站内java
标题[问题] setBackground
时间Thu May 22 23:33:07 2008
请问如果要按下不同的button後就可以设定JFrame的background
那麽
在listener中除了加入
theJFrame.setBackground(Color.red);
theJFrame.validate();
外还有什麽要加的吗
因为我写了上面两行
but background只会闪一下
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.113.69.86
1F:推 Jichang:theJFrame.getContentPane.setBackground() 看看 ... 05/23 14:19