new PacketTypeFilter(IQ.class));
PacketCollector packetCollector =
BuddyList.getInstance().getConnection().createPacketCollector(filter);
IQ reply = (IQ) packetCollector.nextResult(SmackConfiguration.getPacketReplyTimeout());
if(reply == null)
{
SwingUtilities.invokeLater( new Runnable()
{
public void run()
{
JOptionPane.showMessageDialog(SearchDialog.this,
resources.getString("searchRequestTimeout"),
resources.getString("searchError"),
JOptionPane.OK_OPTION);
}
} );
returnVal = false;
}
else
{
if(reply.getType() == IQ.Type.ERROR)
{
SwingUtilities.invokeLater( new Runnable()
{
public void run()
{