FINISH and CANCEL buttons are also provided. The BACK button allows you to flip to the previous panel. The component consists of a card panel that can be advanced using the NEXT button. For purposes of this discussion, I will use the example of a simple component, a wizard panel, as a means to demonstrate how to create a new event type.Ī wizard panel implements a simple wizard interface. ![]() ![]() There will be times, however, when a new event type will need to be developed for a new component. If possible, try to use those types rather than create new ones. Plus, you should know that events created using this procedure will not be posted to the event queue and will work only with registered listeners.Ĭurrently, the Java core consists of 12 event types defined in :īecause creating new event types is a non-trivial task, you should examine events that are part of core Java. For the sake of simplicity, I will not discuss concepts of event enabling and event masks. The basic procedure described here is actually rather straightforward. While JDK 1.1 certainly has streamlined event handling with the introduction of the delegation event model, it does not make it easy for developers to create their own event types.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |