?? minebutton.java
字號:
package cleanmine;
import java.awt.Insets;
import javax.swing.JButton;
public class MineButton extends JButton{
private int row;
private int col;
private boolean cleared = false;
public MineButton(int row, int col) {
super();
this.row = row;
this.col = col;
this.setMargin(new Insets(0,0,0,0));
}
public boolean isCleared() {
return cleared;
}
public void setCleared(boolean cleared) {
this.cleared = cleared;
}
public int getCol() {
return col;
}
public int getRow() {
return row;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -