Browse Source

Resized Window and add changed position

master
Leon Montag 2 years ago
parent
commit
23e31f8b97
  1. 7
      src/main/java/Gui/gui.java
  2. 1
      src/main/java/main.java

7
src/main/java/Gui/gui.java

@ -5,11 +5,16 @@ import javax.swing.JFrame;
public class gui {
JFrame jf;
public static int width = 800, height = 600;
public void create(){
jf = new JFrame("Wer wird Millionr");
jf.setSize(width,height);
jf.setVisible(true);
jf.setLocationRelativeTo(null);
jf.setResizable(false);
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}

1
src/main/java/main.java

@ -10,4 +10,3 @@ public class main {
}
}
Loading…
Cancel
Save