buttonflow.java
来自「Java 入门书的源码」· Java 代码 · 共 21 行
JAVA
21 行
//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 + =
减小字号Ctrl + -
显示快捷键?