gui
This commit is contained in:
parent
c1aac0dbeb
commit
f3f73fd13d
2 changed files with 28 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
19
src/gui/components/Components.java
Normal file
19
src/gui/components/Components.java
Normal 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;
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue