final_update
This commit is contained in:
@@ -7,13 +7,18 @@ public class MainSautoir {
|
|||||||
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
|
|
||||||
|
|
||||||
GridLayout gestionnaire = new GridLayout(2, 5);
|
GridLayout gestionnaire = new GridLayout(5, 5);
|
||||||
frame.setLayout(gestionnaire);
|
frame.setLayout(gestionnaire);
|
||||||
|
|
||||||
|
|
||||||
Sautoir instance = new Sautoir();
|
for(int i = 0; i < 5; i ++){
|
||||||
|
for(int j= 0; j< 5; j++){
|
||||||
|
frame.add(new Sautoir());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
frame.add(instance);
|
|
||||||
frame.setSize(500,500);
|
frame.setSize(500,500);
|
||||||
frame.setLocation(500,250);
|
frame.setLocation(500,250);
|
||||||
frame.setVisible(true);
|
frame.setVisible(true);
|
||||||
|
Reference in New Issue
Block a user