?? app15_16.java
字號:
// app15_16, FlowLayout類的使用
import java.awt.*;
public class app15_16
{
static Frame frm=new Frame("Flow Layout");
public static void main(String args[])
{
FlowLayout flow=new FlowLayout(FlowLayout.CENTER,5,10);
frm.setLayout(flow); // 設置版面配置為流動式
frm.setSize(200,150);
frm.setBackground(Color.yellow);
frm.add(new TextField("This",8)); // 加入文本框
frm.add(new TextField("is",6)); // 加入文本框
frm.add(new TextField("Flow Layout",16)); // 加入文本框
frm.setVisible(true);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -