?? buttons.java
字號:
import javax.swing.*;
public class Buttons extends JFrame {
JButton abort = new JButton("Abort");
JButton retry = new JButton("Retry");
JButton fail = new JButton("Fail");
public Buttons() {
super("Buttons");
setSize(80, 140);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel pane = new JPanel();
pane.add(abort);
pane.add(retry);
pane.add(fail);
setContentPane(pane);
}
public static void main(String[] arguments) {
Buttons rb = new Buttons();
rb.show();
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -