Browse Source

refactoring: [GamelauncherMain Class]: Hinzufügen von Kommentaren.

remotes/origin/textadventure
fdai7382 2 years ago
parent
commit
dbc6f698e4
  1. 16
      JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java

16
JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java

@ -7,11 +7,7 @@ import javax.swing.JFrame;
import javax.swing.JPanel; import javax.swing.JPanel;
import javax.swing.border.EmptyBorder; import javax.swing.border.EmptyBorder;
/**
* Hello world!
*
*/
public class GamelauncherMain extends JFrame {
public class GamelauncherMain extends JFrame {//class
public int breite = 1270; public int breite = 1270;
@ -26,7 +22,7 @@ public class GamelauncherMain extends JFrame {
private JPanel contentPane; private JPanel contentPane;
public static void main(String[] args) {
public static void main(String[] args) {//main
EventQueue.invokeLater(new Runnable() { EventQueue.invokeLater(new Runnable() {
@ -47,9 +43,9 @@ public class GamelauncherMain extends JFrame {
} }
}); });
}
}//end main
public GamelauncherMain() {
public GamelauncherMain() {//standardkonstruktor
setTitle("Game Launcher Java, C Plus Plus ist besser"); setTitle("Game Launcher Java, C Plus Plus ist besser");
//setIconImage(Toolkit.getDefaultToolkit().getImage(GameLauncherMain.class.getResource("/gamelauncher/media/GameLauncher1.ico"))); //setIconImage(Toolkit.getDefaultToolkit().getImage(GameLauncherMain.class.getResource("/gamelauncher/media/GameLauncher1.ico")));
@ -66,6 +62,6 @@ public class GamelauncherMain extends JFrame {
contentPane.setForeground(Color.GRAY); contentPane.setForeground(Color.GRAY);
contentPane.setBackground(Color.DARK_GRAY); contentPane.setBackground(Color.DARK_GRAY);
}
}//end standardkonstruktor
}
}//end class
Loading…
Cancel
Save