推 Jichang:theJFrame.getContentPane.setBackground() 看看 ... 05/23 14:19
請問如果要按下不同的button後就可以設定JFrame的background
那麼
在listener中除了加入
theJFrame.setBackground(Color.red);
theJFrame.validate();
外還有什麼要加的嗎
因為我寫了上面兩行
but background只會閃一下
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.69.86