?? myrect.java
字號(hào):
import java.awt.Graphics;
public class MyRect extends MyShape
{
private int wide,hight;
public MyRect()
{
}
public MyRect(int x1,int y1,int x2,int y2)
{
super(x1, y1, x2, y2);
wide=Math.abs(x2-x1);
hight=Math.abs(y2-y1);
}
public void draw(Graphics g)
{
g.drawRect(getX1(),getY1(),wide,hight);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -