?? 使用drawroundrect畫圓.java
字號:
/* * 使用drawRoundRect畫圓.java * * Created on 2004年9月24日, 上午10:47 *//** * * @author litertiger */import java.awt.*;//只要把長方形的長寬和arcwidth和archeight設(shè)置為相同public class 使用drawRoundRect畫圓 extends java.applet.Applet { /** Initialization method that will be called after the applet is loaded * into the browser. */ public void paint(Graphics g) { g.setColor(Color.red); g.drawRoundRect(0,0, 50,50, 50, 50); g.setColor(Color.DARK_GRAY); g.drawRoundRect(40,40, 100, 100, 100, 100); } public void init() { // TODO start asynchronous download of heavy resources } // TODO overwrite start(), stop() and destroy() methods}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -