Re: [問題] 文字閃爍效果
※ 引述《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
06/15 20:17, 1F
討論串 (同標題文章)