Listener

Beschreibung

Computer Programming (Java) Karteikarten am Listener, erstellt von desnunan am 22/03/2014.
desnunan
Karteikarten von desnunan, aktualisiert more than 1 year ago
desnunan
Erstellt von desnunan vor etwa 10 Jahre
26
0

Zusammenfassung der Ressource

Frage Antworten
How can a Listener register for events with a source? Call the source's registration method. Registration methods always take the form of: add<EventType>Listener To register for a button's ActionEvents, for example, call: button.addActionListener(this)
How do you implement a listener interface? By implementing all of the interface's even-handling methods. Put your event-handling code in the listener call-back method. For ActionEvents, the method is: public void actionPerformed(ActionEvent event) { .. }
What is the Event object? Event object is the argument to the event call-back method. Event object holds data about the Event
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Java Week 5 Object Oriented Programming
Troy Bowlin
Making a GUI
desnunan
Java Practice 1
Ummm No
PEGA CSSA Prep
Wendell Phipps
Getting a User Event
desnunan
Paintable Widgets
desnunan
Handling Swing Component Events
desnunan
Playing with Swing Components
desnunan
Make a JScrollPane
desnunan
Java Practice 2
Ummm No
Servion - Java Questionnaire
rohit.benedict