worker = new LdapWorker(server.getText(), baseDN.getText(), bindDN.getText(), bindDNPassword.getText());  boolean success = worker.getSuccess(); if (success) { System.out.println("visible false");  settingsForm.setVisible(false); settingsForm.removeAll();    tabbedPane.setSelectedIndex(1); } else { connectButton.setVisible(true);  }  if (success) { setLdapWorker(worker); createTreeModel(worker); tree.setModel(treeModel); addPanel.setWorker(worker); addPanel.setTree(tree); }
createTreeModel(null); tree.setModel(treeModel); if (existentAttrsF!= null) existentAttrsF.removeAll(); if (otherAttrsF!= null) otherAttrsF.removeAll(); bindDNPassword.setText(""); disconnectButton.setVisible(false); connectButton.setVisible(true); server.setVisible(true); bindDN.setVisible(true); bindDNPassword.setVisible(true); baseDN.setVisible(true); server.setText(""); bindDN.setText(""); bindDNPassword.setText(""); baseDN.setText("");
		public void actionPerformed(ActionEvent e) {		    worker = new LdapWorker(server.getText(),					    baseDN.getText(),					    bindDN.getText(),					    bindDNPassword.getText());		    		    boolean success = worker.getSuccess();		    if (success) {			System.out.println("visible false");						settingsForm.setVisible(false);			settingsForm.removeAll();			//connectButton.setVisible(false);						//disconnectButton.setVisible(true);			tabbedPane.setSelectedIndex(1);		    }		    else {			connectButton.setVisible(true);			//disconnectButton.setVisible(false);		    }		    		    if (success) {			setLdapWorker(worker);			createTreeModel(worker);			tree.setModel(treeModel);			addPanel.setWorker(worker);			addPanel.setTree(tree);		    }		}