?? testthread.java
字號:
/*源程序清單6-11*/
package priority;
public class TestThread extends Thread{
MainFrame mainFrame=null;
int type=0;
public TestThread(MainFrame frame,int i)
{
this.mainFrame=frame;
this.type=i;
}
public synchronized void run()
{
try
{
for(int i=0;i<=100000;i++)
{
Thread.sleep(10);
if(i%100==0)
{
mainFrame.setJSlider(i*10,type);
}
}
}
catch(Exception e)
{
System.out.println(e.toString());
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -