avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ran...@apache.org
Subject cvs commit: jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/gui FtpUserPanel.java
Date Mon, 20 Jan 2003 15:15:09 GMT
rana_b      2003/01/20 07:15:09

  Modified:    ftpserver/src/java/org/apache/avalon/ftpserver/gui
                        FtpUserPanel.java
  Log:
  method name changed - getTopFrame
  
  Revision  Changes    Path
  1.15      +7 -7      jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/gui/FtpUserPanel.java
  
  Index: FtpUserPanel.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/gui/FtpUserPanel.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- FtpUserPanel.java	10 Oct 2002 16:02:01 -0000	1.14
  +++ FtpUserPanel.java	20 Jan 2003 15:15:09 -0000	1.15
  @@ -391,7 +391,7 @@
           // check user name field
           String userName = mjNameTxt.getText().trim();
           if(userName.equals("")) {
  -            GuiUtils.showErrorMessage(getCommonHandler().getTopComponent(), "Please enter
an user name");
  +            GuiUtils.showErrorMessage(getCommonHandler().getTopFrame(), "Please enter an
user name");
               return;
           }
   
  @@ -425,7 +425,7 @@
           }
   
           String userName = selVal.toString();
  -        boolean bConf = GuiUtils.getConfirmation(getCommonHandler().getTopComponent(),
"Do you really want to delete user " + userName + "?");
  +        boolean bConf = GuiUtils.getConfirmation(getCommonHandler().getTopFrame(), "Do
you really want to delete user " + userName + "?");
           if(!bConf) {
               return;
           }
  @@ -515,7 +515,7 @@
               }
           }
           String password = sb.toString();
  -        GuiUtils.showInformationMessage(getCommonHandler().getTopComponent(), "Generated
password: " + password);
  +        GuiUtils.showInformationMessage(getCommonHandler().getTopFrame(), "Generated password:
" + password);
           mjPasswordTxt.setText(password);
           mjRetypePasswordTxt.setText(password);
           mjPasswordChkBox.setSelected(true);
  @@ -536,13 +536,13 @@
   
               // new user
               if( bNewUser && (!bPassSet) && (!usr.getIsAnonymous()) ) {
  -                GuiUtils.showErrorMessage(getCommonHandler().getTopComponent(), "New user
- password required");
  +                GuiUtils.showErrorMessage(getCommonHandler().getTopFrame(), "New user -
password required");
                   return false;
               }
   
               // password set
               if( bPassSet && (!password.equals(repassword)) && (!usr.getIsAnonymous())
) {
  -                GuiUtils.showErrorMessage(getCommonHandler().getTopComponent(), "Password
entries are not equal");
  +                GuiUtils.showErrorMessage(getCommonHandler().getTopFrame(), "Password entries
are not equal");
                   return false;
               }
   
  @@ -572,7 +572,7 @@
                   rate = Integer.parseInt(selObj.toString());
               }
               catch(NumberFormatException ex) {
  -                GuiUtils.showErrorMessage(getCommonHandler().getTopComponent(), ex.getMessage());
  +                GuiUtils.showErrorMessage(getCommonHandler().getTopFrame(), ex.getMessage());
               }
           }
   
  @@ -590,7 +590,7 @@
                   sec = Integer.parseInt(selObj.toString());
               }
               catch(NumberFormatException ex) {
  -                GuiUtils.showErrorMessage(getCommonHandler().getTopComponent(), ex.getMessage());
  +                GuiUtils.showErrorMessage(getCommonHandler().getTopFrame(), ex.getMessage());
               }
           }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message