Commit 73778033 authored by 9831111's avatar 9831111 🙂

Add initSettingPanel method.

parent 19a031d3
...@@ -82,6 +82,27 @@ public class SettingFrame extends JFrame { ...@@ -82,6 +82,27 @@ public class SettingFrame extends JFrame {
userInformationPanel.add(text); userInformationPanel.add(text);
} }
public void initSettingPanel() {
settingPanel = new JPanel();
gameDetailsPanel = new JPanel();
serverPanel = new JPanel();
serverPanel.setBackground(Color.darkGray);
serverPanel.setLayout(new BorderLayout());
serverPanel.setBorder(new LineBorder(Color.GRAY, 2));
gameDetailsPanel.setBackground(Color.darkGray);
gameDetailsPanel.setLayout(new GridLayout(3, 2));
settingPanel.setBackground(Color.darkGray);
settingPanel.setLayout(new BorderLayout());
sliderAndIcon("pictures/tankHealth.png", 40);
sliderAndIcon("pictures/shotDamage.png", 80);
sliderAndIcon("pictures/DestructibleWall.png", 20);
initServerPanel();
add(settingPanel);
settingPanel.add(gameDetailsPanel, BorderLayout.NORTH);
settingPanel.add(serverPanel, BorderLayout.CENTER);
}
......
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