?? rect.java
字號:
import java.applet.*;import java.awt.*;public class Rect extends Applet{public void init() { } public void paint(Graphics g) {Insets insets=this.insets(); int x=0,y=0; int w=size().width-insets.left-insets.right; int h=size().height-insets.top-insets.bottom; g.setColor(Color.red); while(w>0&&h>0) {g.clearRect(x++,y++,w,h); g.fillRect(x++,y++,w-2,h-2); w-=4; h-=4; } }}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -