System.out.println("userPasssssssssssssssword") ; uP = true;
if (uPw.getText().equals(newValue)) attr.add(newValue); else System.out.println("nicht gleiches Passwort");
    public void actionPerformed(ActionEvent evt) {	String newValue = null;	String oldValue = null;	String oValue;	if (evt.getSource().equals(commitButton)) {	    System.out.println(">> commit <<");	    LdapWorker worker = getLdapWorker();	    BasicAttributes attributes = new BasicAttributes();	    Enumeration enumer = componentTable.keys();	    while (enumer != null && enumer.hasMoreElements()) {		String key = (String)enumer.nextElement();		System.out.println(key);				oldValue = (String)(textHashtable.get(key));		System.out.println("fuer " + key + " old value " +oldValue);				if (oldValue != null ) {		    if (componentTable.get(key).getClass().getName().equals("org.wings.SLabel"))			newValue = ((SLabel)componentTable.get(key)).getText();		    else 			newValue = ((STextField)componentTable.get(key)).getText();		}				System.out.println("new value " +newValue);		System.out.println("old value " +oldValue);				if (oldValue!=null) {		    //boolean uP = false;		    if (!oldValue.equals(newValue)) {			boolean uP = false;			BasicAttribute attr = new BasicAttribute((String)key);			if (((String)key).toLowerCase().trim().equals("userpassword")) 			{ 			    System.out.println("userPasssssssssssssssword") ;			    uP = true;			}			StringTokenizer st = new StringTokenizer(newValue,",");			String atV;			boolean b = ((st !=null) && (st.hasMoreTokens()));			System.out.println("b is " + b);			if (b)			    while (st !=null && st.hasMoreTokens())				{System.out.println("o je");				attr.add(st.nextToken());}			else {			    System.out.println("oho");			    if (uP) {				System.out.println("nun geht's auch um Passw");				System.out.println("das Feld " + userPassword.getText());				if (userPassword.getText().equals(newValue))				    attr.add(newValue);				else 				    System.out.println("nicht gleiches Passwort");			    }			    else attr.add(newValue);			}			attributes.put(attr);		    }		}	    }	    	    if (attributes !=null && attributes.size() > 0)		worker.modifyAttributes(dn,attributes);	    if (chooser!=null) {		if (chooser.getFilename()!="" && chooser.getFilename()!=null) {		    String attribut = "jpegPhoto";		    BasicAttributes attrs = new BasicAttributes();		    BasicAttribute attr = new BasicAttribute("jpegPhoto");		    		    try {			fis = new FileInputStream("/home/nengels/jpg/" + chooser.getFilename());			System.out.println("dir" + chooser.getFiledir());			System.out.println("file" + chooser.getFilename());			try {			    int bytesNr = fis.available();			    b = new byte[bytesNr];			    System.out.println(bytesNr + "  bytes            " );			    System.out.println(b.length);			    int i = fis.read(b);			    fis.close();			    componentTable.remove("jpegPhoto");			    componentTable.put("jpegPhoto", new SLabel(new ImageIcon("/home/nengels/jpg/" + chooser.getFilename())));			    addEditableComponents(componentTable);			}			catch (IOException e) {			}		    }		    catch(FileNotFoundException ex){		    }		    attr.add(b);		    attrs.put(attr);		    if (attrs.size() > 0)			worker.modifyAttributes(dn,attrs);		}	    }	}		if (evt.getSource().equals(removeButton)) {	    System.out.println("please remove entry");	    String dn = getDN();	    System.out.println("dn is " + dn);	    LdapWorker worker = getLdapWorker();	    worker.removeEntry(dn);	    existentAttrsF.removeAll();	    otherAttrsF.removeAll();	    LdapTreeNode nd= (LdapTreeNode)getNode();	    LdapTreeNode parent = (LdapTreeNode)nd.getParent();	    DefaultTreeModel model = (DefaultTreeModel)tree.getModel();	    if (parent!=null) {		//parent.removeChild(node);		//model.removeNodeFromParent(nd);		model.nodesWereRemoved(parent,new int[]{parent.getIndex(node)}, new Object[] {node});	    }	}    }