From f8aa9e921bb721829a14549d130bfcb0a4fbb415 Mon Sep 17 00:00:00 2001 From: Yana Stamcheva Date: Fri, 22 Apr 2011 08:42:15 +0000 Subject: [PATCH] Make it possible to set the default value of the rememberPassword property in the AuthenticationWindow. --- .../util/swing/AuthenticationWindow.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/net/java/sip/communicator/util/swing/AuthenticationWindow.java b/src/net/java/sip/communicator/util/swing/AuthenticationWindow.java index 7db86a31c..037b90b12 100644 --- a/src/net/java/sip/communicator/util/swing/AuthenticationWindow.java +++ b/src/net/java/sip/communicator/util/swing/AuthenticationWindow.java @@ -170,6 +170,32 @@ public AuthenticationWindow(String userName, this.infoTextArea.setText(errorMessage); } + /** + * Creates an instance of the LoginWindow. + * + * @param userName the user name to set by default + * @param password the password to set by default + * @param server the server name this authentication window is about + * @param isUserNameEditable indicates if the user name should be editable + * by the user or not + * @param isRememberPassword indicates if the password should be rememberd + * @param icon the icon displayed on the left of the authentication window + * @param errorMessage an error message explaining a reason for opening + * the authentication dialog (when a wrong password was provided, etc.) + */ + public AuthenticationWindow(String userName, + char[] password, + String server, + boolean isUserNameEditable, + boolean isRememberPassword, + ImageIcon icon, + String errorMessage) + { + this(userName, password, server, isUserNameEditable, icon, errorMessage); + + this.isRememberPassword = isRememberPassword; + } + /** * Creates an instance of the LoginWindow. *