diff --git a/src/net/java/sip/communicator/util/swing/AuthenticationWindow.java b/src/net/java/sip/communicator/util/swing/AuthenticationWindow.java index 851c1c08c..6ff88db61 100644 --- a/src/net/java/sip/communicator/util/swing/AuthenticationWindow.java +++ b/src/net/java/sip/communicator/util/swing/AuthenticationWindow.java @@ -105,7 +105,9 @@ public AuthenticationWindow(String server, boolean isUserNameEditable, ImageIcon icon) { - this(new JDialog(), server, isUserNameEditable, icon); + super(false); + + init(server, isUserNameEditable, icon); } /** @@ -123,6 +125,20 @@ public AuthenticationWindow(Dialog owner, { super(owner, false); + init(server, isUserNameEditable, icon); + } + + /** + * Initializes this authentication window. + * + * @param server the server + * @param isUserNameEditable indicates if the user name is editable + * @param icon the icon to show on the authentication window + */ + private void init( String server, + boolean isUserNameEditable, + ImageIcon icon) + { this.server = server; initIcon(icon);