?? timer.java
字號:
/*
* Timer.java
* Download by http://www.codefans.net
* Created on 2007年9月5日, 上午10:13
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package weather;
import java.util.*;
import javax.swing.*;
/**
*
* @author yuhui_bear
*/
public class Timer extends Thread{
private Map<String , String> map;
private mainFrame mf;
private String mplace;
private JProgressBar pbar;
private JTabbedPane jtp;
/** Creates a new instance of Timer */
public Timer(Map<String,String> fc_in , mainFrame frame , JTextField tf , JProgressBar bar , JTabbedPane jtpin) {
map = fc_in;
mf = frame;
pbar = bar;
jtp = jtpin;
mplace = tf.getText().trim();
}
public void run(){
try{
while(true){
new Updater("updater" , map , mf , mplace ,pbar ,jtp);
sleep(900000);
}
}catch(InterruptedException ex){
System.err.println("sleep failed");
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -