Arene #21
@@ -41,10 +41,20 @@ public class ArenaWindow extends JFrame {
|
||||
JScrollPane scrollPane = new JScrollPane(resultsTable);
|
||||
add(scrollPane, BorderLayout.CENTER);
|
||||
|
||||
// Bouton pour lancer les parties
|
||||
// Panneau des boutons
|
||||
JPanel buttonPanel = new JPanel(new FlowLayout());
|
||||
JButton startButton = new JButton("Lancer les parties");
|
||||
startButton.addActionListener(e -> showConfigDialog());
|
||||
add(startButton, BorderLayout.SOUTH);
|
||||
buttonPanel.add(startButton);
|
||||
|
||||
JButton backButton = new JButton("Retour au menu");
|
||||
backButton.addActionListener(e -> {
|
||||
dispose(); // Ferme la fenêtre Arène
|
||||
Main.showModeSelection(); // Affiche le menu principal
|
||||
});
|
||||
buttonPanel.add(backButton);
|
||||
|
||||
add(buttonPanel, BorderLayout.SOUTH);
|
||||
|
||||
pack();
|
||||
setSize(600, 400);
|
||||
|
||||
Reference in New Issue
Block a user