1 19 20 21 package org.netbeans.modules.j2ee.oc4j.util; 22 23 import org.openide.NotifyDescriptor; 24 import org.openide.util.NbBundle; 25 26 30 public class OC4JPasswordInputDialog extends NotifyDescriptor { 31 32 private String user; 33 34 37 protected OC4JPasswordInputPanel panel; 38 39 static protected final String title =NbBundle.getMessage(OC4JPasswordInputDialog.class, "LBL_PasswordTitle"); 40 41 45 public OC4JPasswordInputDialog(String user) { 46 super(null, title, NotifyDescriptor.OK_CANCEL_OPTION, NotifyDescriptor.PLAIN_MESSAGE, null, null); 47 48 this.user = user; 49 panel = new OC4JPasswordInputPanel(user); 50 51 super.setMessage(panel); 52 } 53 54 58 public String getPassword() { 59 return panel.getPassword(); 60 } 61 62 63 } | Popular Tags |