画圆角矩形.java

来自「200多个自己编的java程序,大家可以学一下.」· Java 代码 · 共 31 行

JAVA
31 行
字号
/* * 画圆角矩形.java * * Created on 2004年9月24日, 上午10:42 *//** * * @author  litertiger */import java.awt.*;public class 画圆角矩形 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, 20,20, 3, 5);        g.drawRoundRect(40,40, 100, 100, 80, 80);    }    public void init() {        // TODO start asynchronous download of heavy resources    }        // TODO overwrite start(), stop() and destroy() methods}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?