?? squarepoint.java
字號:
import java.awt.*;
import javax.swing.JButton;
public class SquarePoint
{
int x,y;
boolean 有方塊;
JButton block=null;
Container con=null;
public SquarePoint(int x,int y)
{
this.x=x;
this.y=y;
}
public boolean get有方塊()
{
return 有方塊;
}
public void set有方塊(boolean boo)
{
有方塊=boo;
}
public int getX()
{
return x;
}
public int getY()
{
return y;
}
public void setBlock(JButton block,Container con)
{
this.con=con;
this.block=block;
con.add(block);
block.setLocation(x,y);
有方塊=true;
con.validate();
}
public JButton getBlock()
{
return block;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -