Commit feec7af9 authored by nargessalehi98's avatar nargessalehi98

Add javaDoc.

parent 09a1025c
...@@ -7,8 +7,13 @@ import java.awt.event.ActionListener; ...@@ -7,8 +7,13 @@ import java.awt.event.ActionListener;
import java.io.File; import java.io.File;
import java.io.FileWriter; import java.io.FileWriter;
/**
* this class provide Game opening window
* @author narges salehi & sepehr tavakoli
* @version 1.1
* @since July 21 2020
*/
public class CreateNewGameFrame extends JFrame { public class CreateNewGameFrame extends JFrame {
private JPanel settingPanel; private JPanel settingPanel;
private JPanel gameDetailsPanel; private JPanel gameDetailsPanel;
private JPanel optionPanel; private JPanel optionPanel;
...@@ -50,7 +55,7 @@ public class CreateNewGameFrame extends JFrame { ...@@ -50,7 +55,7 @@ public class CreateNewGameFrame extends JFrame {
destructibleWallSlider = new JSlider(10, 100, 20); destructibleWallSlider = new JSlider(10, 100, 20);
sliderAndIcon(tankHealthSlider, "pictures/tankHealth.png"); sliderAndIcon(tankHealthSlider, "pictures/tankHealth.png");
sliderAndIcon(shotDamageSlider, "pictures/shotDamage.png"); sliderAndIcon(shotDamageSlider, "pictures/shotDamage.png");
sliderAndIcon(destructibleWallSlider,"pictures/DestructibleWall.png"); sliderAndIcon(destructibleWallSlider, "pictures/DestructibleWall.png");
add(settingPanel); add(settingPanel);
settingPanel.add(gameDetailsPanel, BorderLayout.CENTER); settingPanel.add(gameDetailsPanel, 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