DefaultListModel model = (DefaultListModel) jList1.getModel();
services.clear();
model.clear();
for(Iterator i = item.getItems();i.hasNext();)
{
DiscoveryItem di = (DiscoveryItem)i.next();
String name = di.getName();
if(name==null) name= di.getJID().toStringNoResource();
//put in services so errors do not prevent register
services.put(name,di.getJID());
model.addElement(name);
//numberOfServices++;
backend.getInfo(di.getJID(),this);
}
}
pack();
setLocationRelativeTo(null);
}