Commit 20ddf1fa authored by 9831111's avatar 9831111 🙂

Add CreateNewGameFrame class.

parent db52b14d
import javax.swing.*;
import java.awt.*;
public class CreateNewGameFrame extends JFrame {
private JPanel settingPanel;
private JPanel gameDetailsPanel;
private JPanel optionPanel;
private JTextField gameNameText;
private JComboBox gameFinishMode;
private JComboBox playerNumber;
private JComboBox gameMode;
private JButton okButton;
private JSlider tankHealthSlider;
private JSlider shotDamageSlider;
private JSlider destructibleWallSlider;
private String gameDetails = "";
public CreateNewGameFrame(String title) {
super(title);
setBackground(Color.WHITE);
setResizable(false);
setLayout(new GridLayout(1, 2));
setBounds(600, 200, 500, 570);
initSettingPanel();
initNewGame();
setVisible(true);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment