Event Handling in Java - Assignment 2
The objective of this assignment is to understand events handling in abstract way. We have used events with GUI components, but events are not only associated with GUI components. You can define events and fire them even when there is no GUI of your application.
In this assignment you are supposed to create ResultAnnouncedEvent which is fired by ExaminationCenter. Different entities (or classes) can register themselves as listeners so that when result is announced they are notified, for example Student, Teacher and Administrator. So these classes are event listeners. These classes should just receive the event and print the event attributes. The ResultAnnouncedEvent class should be composed of class, section, and date attributes. Also create ExaminationCenterTest class that fires the event.
Before doing this assignment, it is recommended you read API docs of java.util.EventObject, java.util.EventListener.
Also See: http://www.jguru.com/faq/view.jsp?EID=98547
Due: Next Lab.
Also See: http://www.jguru.com/faq/view.jsp?EID=98547
Due: Next Lab.
DONE :)
ReplyDeleteMidsize business or non-profit organization should decide if one-vendor solution would be appropriate and the associated risk acceptable. In our opinion, balancing the risk of one-vendor-approach is not economically feasible and should be avoided. This means that you need to decide if you plan to be Microsoft-oriented or Java/Unix/Linux/Oracle oriented. See more java assignment help
ReplyDelete