// Get a query for each engine
for (Enumeration e = mhs.getEngines();
e.hasMoreElements(); ) {
SearchEngine engine = (SearchEngine) e.nextElement();
if (engine != null) {
queries.addElement(engine.createQuery());
}
}
// Set the listener to this class and start the query
for (Enumeration e = queries.elements(); e.hasMoreElements(); ) {