if(bmsg.getWhat() == BufferUpdate.CLOSED)
Buffer buffer = bmsg.getBuffer(); if(bmsg.getWhat() == BufferUpdate.CREATED)
	public void handleMessage(EBMessage msg)	{		if(msg instanceof BufferUpdate)		{			BufferUpdate bmsg = (BufferUpdate)msg;			if(bmsg.getWhat() == BufferUpdate.CLOSED)			{				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);				}			}		}	}