Re: [問題] 文字閃爍效果

看板java作者 (魔法設計師)時間17年前 (2008/06/15 19:44), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/2 (看更多)
※ 引述《maxgreg (Sn2+)》之銘言: 恕刪 : Thread tt = new Thread( new Runnable() : { : public void run() : { : while( true ) : { : order.setVisible( false ); : try : { order.setVisible(false); : Thread.sleep( 500 ); : order.setVisible( true ); : }catch( Exception e ){} : } : } : } : );//end Runnable anonymous class : //order 是一個JLabel : tt.stsrt(); ~~~~~~~~~~~~ 改tt.start(); 試試看這樣。 -- 我的網誌:http://magicdesign.blogspot.com/ ----------------------------------------------- 需要白紙黑字的維基百科?請找薇琦姑娘! http://wikigirl.url.tw/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.56.157.129

06/15 20:17, , 1F
xorder.setVisible( true ); 後面應該要在睡一下
06/15 20:17, 1F
文章代碼(AID): #18LG2nTI (java)
討論串 (同標題文章)
文章代碼(AID): #18LG2nTI (java)