drawarcdemo.java
来自「java 完全探索的随书源码」· Java 代码 · 共 21 行
JAVA
21 行
// DrawArcDemo.java
import java.awt.*;
import java.applet.Applet;
public class DrawArcDemo extends Applet
{
public void paint (Graphics g)
{
// Get the width and height of the applet's drawing surface.
int width = getSize ().width;
int height = getSize ().height;
g.drawArc (0, 0, width, height, 0, 90);
g.fillArc (0, 0, width, height, 90, 90);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?