hide();
setVisible(false);
    private void ok() {        String host = hostTextField.getText();        String domain = domainTextField.getText();        String realm = realmTextArea.getText();        String username = usernameTextField.getText();        String password = new String(passwordTextField.getPassword());        if (basicRadioButton.isSelected()) {            BasicCredential bc = new BasicCredential(host, realm, username, password);            _manager.addBasicCredentials(bc);        } else if (domainRadioButton.isSelected()) {            DomainCredential dc = new DomainCredential(host, domain, username, password);            _manager.addDomainCredentials(dc);        }        hide();    }