📄 exampleww.java
字号:
import java.awt.*;
public class exampleWW { // example use of 2 kinds of Window
public static void main(String args[]) {
Frame f = new Frame();
Window w = new Window(f); // standard Window
w.setSize(200,100);
w.setVisible(true);
w.setLocation(300,300);
// The new red-hued WarningWindow we created
WarningWindow ww = new WarningWindow(f);
ww.setSize(200,100); // setSize is in a superclass
ww.setVisible(true);
ww.setLocation(370,370);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -