?? app15_3.java
字號:
// app15_3, AWT簡單的范例(三)
import java.awt.*;
public class app15_3 extends Frame // 指定app15_3繼承自Frame類
{
public static void main(String args[])
{
app15_3 frm=new app15_3(); // 用app15_3類產生frm對象
Label lab=new Label("Hello Java!!");
frm.setTitle("my first AWT program"); // 在窗口中加入標題
frm.setSize(200,150);
frm.setBackground(Color.yellow);
frm.setLocation(250,250);
frm.add(lab);
frm.setVisible(true);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -