📄 buttonflow.java
字号:
//Copyright (c) 1998, Arthur Gittleman
//This example is provided WITHOUT ANY WARRANTY either expressed or implied.
/* Add five buttons to an applet.
* Try different sizes for the applet
* to see how the flow layout manager
* adjusts the placement of the buttons.
*/
import java.awt.*;
import java.applet.Applet;
public class ButtonFlow extends Applet {
public void init() {
add(new Button("one"));
add(new Button("two"));
add(new Button("three"));
add(new Button("four"));
add(new Button("five"));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -