SearchResult result = (SearchResult)resultModel .elementAt(i); if(result.buffer == buffer) resultModel.removeElementAt(i);
Buffer buffer = bmsg.getBuffer(); for(int i = resultModel.getSize() - 1; i >= 0; i--) { SearchResult result = (SearchResult)resultModel .elementAt(i); if(result.buffer == buffer) resultModel.removeElementAt(i); }
	public void handleMessage(EBMessage msg)	{		if(msg instanceof BufferUpdate)		{			BufferUpdate bmsg = (BufferUpdate)msg;			Buffer buffer = bmsg.getBuffer();			for(int i = 0; i < resultModel.getSize(); i++)			{				SearchResult result = (SearchResult)resultModel					.elementAt(i);				if(result.buffer == buffer)					resultModel.removeElementAt(i);			}		}	}