📄 flow.java
字号:
import java.awt.*;
public class Flow extends Frame{
public Flow(){
//this.setLayout(new FlowLayout());
this.setLayout(new FlowLayout(FlowLayout.LEFT));
add(new Button("East"));
add(new Label("West"));
add(new TextField("North"));
add(new Checkbox("South"));
add(new Button("CENTER"));
this.setSize(400,400);
this.setVisible(true);
}
public static void main(String[] args){
Flow s = new Flow();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -