?? icons.java
字號:
import javax.swing.*;
public class Icons extends JFrame {
JButton[] buttons = new JButton[24];
public Icons() {
super("Icons");
setSize(335, 318);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel pane = new JPanel();
ImageIcon icon = new ImageIcon("3dman.gif");
for (int i = 0; i < 24; i++) {
buttons[i] = new JButton(icon);
pane.add(buttons[i]);
}
setContentPane(pane);
show();
}
public static void main(String[] arguments) {
Icons ike = new Icons();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -