作者mgdesigner (魔法设计师)
看板java
标题Re: [问题] 文字闪烁效果
时间Sun Jun 15 19:44:46 2008
※ 引述《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
1F:推 slalala:xorder.setVisible( true ); 後面应该要在睡一下 06/15 20:17