?? app15_17.java
字號:
// app15_17, GridLayout類的使用
import java.awt.*;
public class app15_17
{
static Frame frm=new Frame("Grid Layout");
public static void main(String args[])
{
GridLayout grid=new GridLayout(3,5); // 3行5列的配置
frm.setLayout(grid);
frm.setSize(200,150);
for(int i=1;i<=15;i++)
frm.add(new Button(Integer.toString(i))); // 加入按鈕
frm.setVisible(true);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -