[問題] setBackground

看板java作者 (hsnugo)時間17年前 (2008/05/22 23:33), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
請問如果要按下不同的button後就可以設定JFrame的background 那麼 在listener中除了加入 theJFrame.setBackground(Color.red); theJFrame.validate(); 外還有什麼要加的嗎 因為我寫了上面兩行 but background只會閃一下 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.69.86

05/23 14:19, , 1F
theJFrame.getContentPane.setBackground() 看看 ...
05/23 14:19, 1F
文章代碼(AID): #18DP8q7H (java)