This commit is contained in:
potzplitz 2024-02-27 18:29:14 +01:00
parent c1aac0dbeb
commit f3f73fd13d
2 changed files with 28 additions and 1 deletions

View file

@ -1,10 +1,18 @@
package gui;
import java.awt.Color;
import javax.swing.JFrame;
import javax.swing.JPanel;
import gui.components.Components;
public class MainGUI {
public void build() {
Components components = new Components();
JFrame main = new JFrame();
main.setSize(900, 700);
main.setLayout(null);
@ -13,7 +21,7 @@ public class MainGUI {
main.add(components.LevelPanel());
main.setVisible(true);
}

View file

@ -0,0 +1,19 @@
package gui.components;
import java.awt.Color;
import javax.swing.JPanel;
public class Components {
public JPanel LevelPanel() {
JPanel levelpanel = new JPanel();
levelpanel.setBounds(0, 63, 700, 600);
levelpanel.setBackground(Color.LIGHT_GRAY);
return levelpanel;
}
}