?? singlebutton.java
字號(hào):
/*
* 創(chuàng)建日期 2004-11-22
*
* TODO 要更改此生成的文件的模板,請(qǐng)轉(zhuǎn)至
* 窗口 - 首選項(xiàng) - Java - 代碼樣式 - 代碼模板
*/
package game;
import javax.swing.*;
/**
* @author Jerry703
*
* TODO 要更改此生成的類型注釋的模板,請(qǐng)轉(zhuǎn)至
* 窗口 - 首選項(xiàng) - Java - 代碼樣式 - 代碼模板
*/
public class SingleButton extends JButton {
//public boolean pressed;
public boolean empty;
public char type;
public int x;
public int y;
//public boolean goway;
public SingleButton(String temp,int x,int y){
super(temp);
this.x = x;
this.y = y;
}
/*public SingleButton(ImageIcon img,int x,int y){
super(img);
this.x = x;
this.y = y;
}*/
public void setType(char str){
this.type = str;
}
public void setIcon(ImageIcon e){
super.setIcon(e);
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -