Presentation is loading. Please wait.

Presentation is loading. Please wait.

JFrame JComponent JFrame JComponent JFrame JComponent.

Similar presentations


Presentation on theme: "JFrame JComponent JFrame JComponent JFrame JComponent."— Presentation transcript:

1

2

3

4 JFrame

5 JComponent

6 JFrame JComponent

7 JFrame JComponent

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

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)

25

26

27

28


Download ppt "JFrame JComponent JFrame JComponent JFrame JComponent."

Similar presentations


Ads by Google