📄 driver.java
字号:
/** Author: David D. Riley * Date: Jan, 2005 * Nested Circles Driver (Nested Circles in Figure 6.13) */import java.awt.*;import javax.swing.*;public class Driver extends ThreeButtons { private ThreeButtonFrame theWin; private NestedCircles bullseye; /** post: A window is displayed that contains a NestedCircles object. */ public Driver() { theWin = new ThreeButtonFrame("Concentric Circles"); theWin.setLayout(null); bullseye = new NestedCircles(100, 30, 200); bullseye.setBackground(Color.red); theWin.add( bullseye.addableContent(), 0); theWin.repaint(); theWin.setVisible(true); } public void leftAction() { } public void midAction() { bullseye.insertCircle(); } public void rightAction() { }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -