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