* Notifies all the ErrorEventListener on an error in this gui by
* creating an ErrorEvent (with the error message) and sending it
* using the errorOccured method to all the listeners.
*/
public void notifyErrorListeners(String errorMessage) {
ErrorEvent event = new ErrorEvent(this, errorMessage);
for (int i=0; i<errorEventListeners.size(); i++)
((ErrorEventListener)errorEventListeners.elementAt(i)).errorOccured(event);
}