?? draw2.java
字號(hào):
import java.awt.*;
public class Draw2 extends Frame{
public Draw2(String title){
super(title);
}
public void paint(Graphics g){
g.setColor(Color.red);
g.fillRect(60,30,50,50);
g.fillRoundRect(120,30,50,50,20,20);
g.fillOval(10,100,70,50);
}
public static void main(String[] args){
Frame f=new Draw2("檔屈 弊府扁");
f.setSize(300,200);
f.setVisible(true);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -