Fixes Java 5 incompatibility in AuthenticationWindow constructor, by using another super constructor.

cusax-fix
Yana Stamcheva 14 years ago
parent 7fe9d95f1a
commit f8dad6e62e

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

Loading…
Cancel
Save