ok
This commit is contained in:
parent
01a656af7f
commit
fcdffb82f0
@ -1,19 +1,15 @@
|
||||
package fr.iutfbleau.projetAgile.View;
|
||||
|
||||
import java.awt.*;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JLabel;
|
||||
import fr.iutfbleau.projetAgile.Controller.*;
|
||||
|
||||
public class Menu extends JFrame{
|
||||
public class Menu extends JPanel{
|
||||
|
||||
public Menu(){
|
||||
super();
|
||||
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
this.setLocation(0,0);
|
||||
this.setSize(1280,720);
|
||||
(this.getContentPane()).setBackground(new Color(31,31,31));
|
||||
|
||||
this.setBackground(new Color(31,31,31));
|
||||
GridBagLayout gbl=new GridBagLayout();
|
||||
this.setLayout(gbl);
|
||||
GridBagConstraints gbc=new GridBagConstraints();
|
||||
@ -69,7 +65,6 @@ public class Menu extends JFrame{
|
||||
this.add(CoD, Menu.GridBagConstraintsRetour(0, 3));
|
||||
this.add(minecraft, Menu.GridBagConstraintsRetour(1, 3));
|
||||
this.add(puzzle, Menu.GridBagConstraintsRetour(2, 3));
|
||||
this.setVisible(true);
|
||||
}
|
||||
public static GridBagConstraints GridBagConstraintsRetour(int collonne, int ligne){
|
||||
GridBagConstraints gbc=new GridBagConstraints();
|
||||
|
Loading…
Reference in New Issue
Block a user