Arene #21

Merged
Hugo RABAN merged 3 commits from Arene into master 2026-02-04 13:01:10 +01:00
Showing only changes of commit be459707ce - Show all commits

View File

@@ -41,10 +41,20 @@ public class ArenaWindow extends JFrame {
JScrollPane scrollPane = new JScrollPane(resultsTable); JScrollPane scrollPane = new JScrollPane(resultsTable);
add(scrollPane, BorderLayout.CENTER); 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"); JButton startButton = new JButton("Lancer les parties");
startButton.addActionListener(e -> showConfigDialog()); 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(); pack();
setSize(600, 400); setSize(600, 400);