?? timeticker.java
字號(hào):
/*
* Created on 2005-6-2
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package bomb;
import java.util.Observable;
/**
* @author Administrator
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class TimeTicker extends Observable {
private int ticker = 0;
public final int MAX = 999;
public TimeTicker(){
this(0);
}
public TimeTicker(int ticker){
this.ticker = ticker;
}
public int getTicker(){
return ticker;
}
public void setTicker(int ticker){
this.ticker = ticker;
sendChanges();
}
private void sendChanges(){
this.setChanged();
this.notifyObservers();
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -