Bug# 84607 BLD200609171800
authormukeshgarg@netbeans.org
Thu, 14 Sep 2006 15:11:26 +0000
changeset 7511f139e24dd4ae
parent 7510 b2eeb87d51be
child 7512 b17de7e06690
Bug# 84607
Just show the error at the bottom of the panel. Message box is only needed when user has selected a wrong directory name using the FileChooser.
j2ee.sun.ws7/src/org/netbeans/modules/j2ee/sun/ws7/ui/WS70AddServerChoiceVisualPanel.java
     1.1 --- a/j2ee.sun.ws7/src/org/netbeans/modules/j2ee/sun/ws7/ui/WS70AddServerChoiceVisualPanel.java	Thu Sep 14 07:58:28 2006 +0000
     1.2 +++ b/j2ee.sun.ws7/src/org/netbeans/modules/j2ee/sun/ws7/ui/WS70AddServerChoiceVisualPanel.java	Thu Sep 14 15:11:26 2006 +0000
     1.3 @@ -143,8 +143,14 @@
     1.4          }
     1.5          
     1.6          if(!isValidServer(new File(installDirName))){
     1.7 -            Util.showError(NbBundle.getBundle(WS70AddServerChoiceVisualPanel.class).getString("MSG_INVALID_SERVER_DIRECTORY"));
     1.8 +            
     1.9 +            // Bug# 84607 Just show the error at the bottom of the panel. 
    1.10 +            // Message box is only needed when user has selected a wrong 
    1.11 +            // directory name using the FileChooser
    1.12 +            
    1.13 +            //Util.showError(NbBundle.getBundle(WS70AddServerChoiceVisualPanel.class).getString("MSG_INVALID_SERVER_DIRECTORY"));
    1.14              jLocationTxt.requestFocusInWindow();
    1.15 +            jLocationTxt.selectAll();
    1.16              return false;
    1.17          }
    1.18          return true;