commit rapide car j'avais déjà le code mais que je n'avais pas push le code d'avant

This commit is contained in:
felix-vi
2026-01-31 14:28:05 +01:00
parent d907d2d52b
commit be459707ce

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);