📄 drawarcdemo.java
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -