📄 mainboard.java
字号:
package sweet.game;
import javax.swing.JFrame;
public class Mainboard {
private JFrame frame;
/**
* Launch the application
* @param args
*/
public static void main(String args[]) {
try {
Mainboard window = new Mainboard();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* Create the application
*/
public Mainboard() {
initialize();
}
/**
* Initialize the contents of the frame
*/
private void initialize() {
frame = new JFrame();
frame.setTitle("小蜜蜂beta(Designed by Sweet)");
frame.setResizable(false);
frame.getContentPane().setLayout(null);
frame.setBounds(100, 100, 500, 375);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
final Start startgame=new Start();
startgame.setLayout(null);
startgame.setBounds(0, 0, 500, 345);
frame.getContentPane().add(startgame);
frame.addKeyListener(startgame);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -