Application with Events
jfgpimpollo March 5, 2008
 
Hi.
I'm following the examples to create an example using Door component from Acme package. I'm having a problem, because I want to listen events in Door swing component don't know how to asociate a listener to the component from my application.
My purpose is to get the state of the door when a user changes a radio-button of the swing Application.

Thanks.

Asier March 5, 2008
 
Hi.

Your class should implement the interface XInterfaceEventsListener. The method of this interface processEvent( String logicalName, XDataEvent event) will be called each time an event is sent by the Service.

Remember you have to add the XClassService object as an events listener with the method addEventsListener.

Regards.