作者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