From 5e727b4745893bb57fc96fabe09b1e2fe686c360 Mon Sep 17 00:00:00 2001 From: besson Date: Tue, 6 Dec 2022 11:37:11 +0100 Subject: [PATCH] =?UTF-8?q?Transf=C3=A9rer=20les=20fichiers=20vers=20'src/?= =?UTF-8?q?Test'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Test/Controller.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Test/Controller.java b/src/Test/Controller.java index 42ff1f9..e1ca66a 100644 --- a/src/Test/Controller.java +++ b/src/Test/Controller.java @@ -392,7 +392,7 @@ public class Controller implements ActionListener, ListSelectionListener { forModal.add(new JLabel(" "), settings); settings.setPositionY(6); - JButton confirmRequ = new JButton("Envoyer"); + CustomJButton confirmRequ = new CustomJButton("Envoyer"); confirmRequ.addActionListener(this); confirmRequ.setActionCommand("sv::SendRequest"); forModal.add(confirmRequ, settings); @@ -401,8 +401,8 @@ public class Controller implements ActionListener, ListSelectionListener { "Veuillez entrer un message...", 750, 500, - 1, - 1, + this.parent.getLocation().x + (this.parent.getSize().width - 750) / 2, + this.parent.getLocation().y + (this.parent.getSize().height - 500) / 2, forModal ); }