Correction position fenêtre

This commit is contained in:
Moncef STITI 2024-04-22 15:21:43 +02:00
parent 3d247775d7
commit e705918e08

View File

@ -98,7 +98,6 @@ public class HomeView extends JPanel {
window.add(controlPanel, BorderLayout.SOUTH); // Ajoute le panneau de contrôles à la fenêtre window.add(controlPanel, BorderLayout.SOUTH); // Ajoute le panneau de contrôles à la fenêtre
window.pack(); // Ajuste la taille de la fenêtre pour s'adapter à son contenu window.pack(); // Ajuste la taille de la fenêtre pour s'adapter à son contenu
window.setLocationRelativeTo(null); // Centre la fenêtre sur l'écran
window.setVisible(true); // Rend la fenêtre visible window.setVisible(true); // Rend la fenêtre visible
} }
} }