Download presentation
Presentation is loading. Please wait.
Published byCornelia Powell Modified over 9 years ago
4
JFrame
5
JComponent
6
JFrame JComponent
7
JFrame JComponent
23
source listener responder(s) event
24
four parts of processJava mechanisms stimulusevent (button press, timer tick, etc.) communication (event record of what happened) ActionEvent class (contains information about nature of stimulus) receiving mechanism (how are the stimulus and responding objects connected?) ActionListener interface (classes implementing can listen for a specific kind of event) response (listening object’s reaction to stimulus) actionPerformed (method called in response to stimulus)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.