System.out.println("Cell at position x="+e.getXPosition()+" y="+e.getYPosition());  peopleDN = getLdapWorker().getAttributeDNValues(peopleName,baseDN);  LdapTableModel model = (LdapTableModel)peopleTable.getModel(); String value = (String)model.getValueAt(e.getXPosition(),0); System.out.println("value is" + value); String dn = (String)peopleDN.get(value); viewPanel.removeAll(); peopleTable.setVisible(false); searchForm.setVisible(false); back.setVisible(true);  BasicAttributes attrs = (BasicAttributes)getLdapWorker().getDNAttributes(dn + "," + baseDN); try { NamingEnumeration en = attrs.getAll(); while (en!=null && en.hasMoreElements()) { BasicAttribute attr = (BasicAttribute)en.nextElement(); String label = attr.getID(); if (viewAttributes.containsKey(label)) { NamingEnumeration aValues = attr.getAll(); while (aValues!=null && aValues.hasMore()) { Object i = aValues.next(); if (i.getClass().getName().equals("java.lang.String")) { String values = ""; if(!values.equals("")) { values = values + "," + i; } else { values = (String)i; } viewPanel.add(new SLabel((String)viewAttributes.get(label) + "     ")); viewPanel.add(new SLabel(values)); } if (i.getClass().getName().equals("[B")) { if (label.equals("jpegPhoto")) { viewPanel.add(new SLabel((String)viewAttributes.get(label))); viewPanel.add(new SLabel(new ImageIcon((byte [])i))); } if (label.equals("userPassword")) { SLabel attrLabel = new SLabel((String)viewAttributes.get(label)); STextField attrField = new STextField(i.toString()); viewPanel.add(new SLabel(label)); viewPanel.add(new SLabel("*******")); } } } } }  } catch (NamingException exc){ System.out.println(exc); } viewPanel.setVisible(true); }
System.out.println("select: x=" + e.getXPosition() + ", y=" + e.getYPosition()); showDetails(overviewModel.get(e.getYPosition())); }
		    public void cellSelected(CellSelectionEvent e) {			System.out.println("Cell at position x="+e.getXPosition()+" y="+e.getYPosition());						peopleDN = getLdapWorker().getAttributeDNValues(peopleName,baseDN);						LdapTableModel model = (LdapTableModel)peopleTable.getModel();			String value = (String)model.getValueAt(e.getXPosition(),0);			System.out.println("value is" + value);			String dn = (String)peopleDN.get(value);			viewPanel.removeAll();			peopleTable.setVisible(false);			searchForm.setVisible(false);			back.setVisible(true);						BasicAttributes attrs = (BasicAttributes)getLdapWorker().getDNAttributes(dn + "," + baseDN);			try {				NamingEnumeration en = attrs.getAll();				while (en!=null && en.hasMoreElements()) {				    BasicAttribute attr = (BasicAttribute)en.nextElement();				    String label = attr.getID();				    if (viewAttributes.containsKey(label)) {					NamingEnumeration aValues = attr.getAll();					while (aValues!=null && aValues.hasMore()) {					    Object i = aValues.next();					    if (i.getClass().getName().equals("java.lang.String")) {						String values = "";						if(!values.equals("")) {						    values = values + "," + i;						}						else {						    values = (String)i;						}						viewPanel.add(new SLabel((String)viewAttributes.get(label) + "     "));						viewPanel.add(new SLabel(values));					    }					    if (i.getClass().getName().equals("[B")) {						if (label.equals("jpegPhoto")) {						    viewPanel.add(new SLabel((String)viewAttributes.get(label)));						    viewPanel.add(new SLabel(new ImageIcon((byte [])i)));						}						if (label.equals("userPassword")) {						    SLabel attrLabel = new SLabel((String)viewAttributes.get(label));						    STextField attrField = new STextField(i.toString());						    viewPanel.add(new SLabel(label));						    viewPanel.add(new SLabel("*******"));						}					    }					}				    }				}							    }			    catch (NamingException exc){				System.out.println(exc);			    }			    viewPanel.setVisible(true);		    }