Event Driven Week 2

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/41

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

42 Terms

1
New cards
JLabel
The class can display either text, an image, or both.
2
New cards
display
Label's contents are aligned by setting the vertical and horizontal alignment in its ____ area
3
New cards
vertically centered
By default, labels are ______ in their display area
4
New cards
Text-only
____ labels are leading edge aligned by default
5
New cards
image-only
_____ labels are horizontally centered by default
6
New cards
JButton
an implementation of a push button
7
New cards
JToggleButton
a two-state button typically used on toolbars to indicate the state of a toggleable (on/off) option, such as the bold, italic and underline font attributes that are enabled when using a word processor
8
New cards
Imagelcon
an implementation of the Icon interface that paints Icons from Images
9
New cards
JTextField
a component which allows the editing of a single line of text.
10
New cards
JPassword Field
a component which is specialized to handle password functionality and
allows the editing of a single line of text.
11
New cards
JTextArea
a multi-line area to display plain text
12
New cards
Events
______ are generated as a result of user interaction with the graphical user interface components such as clicking on a button, moving the mouse, entering a character through keyboard, selecting an item from the list, etc
13
New cards
Event Handling
is the mechanism that controls the event and decides what should happen if an event occurs.
14
New cards
Event Handler
This mechanism has a code which is known as an ______, that is executed when an event occurs.
15
New cards
Delegation Event Model
Java uses the _______ to handle the events. This model defines the standard mechanism to generate and handle the events
16
New cards
Foreground Events
These events require direct interaction of the user.
17
New cards
Foreground Events
These events are generated as consequences of a person interacting with the graphical components in the Graphical User Interface
18
New cards
Background Events
These events require indirect interaction of the end user
19
New cards
Background
Operating system interrupts, hardware or software failure, timer expiration, and operation completion are some examples of _______ events
20
New cards
Foreground
clicking on a button, moving the mouse, entering a character through keyboard, selecting an item from list, scrolling the page are some examples of _____ events
21
New cards
Source
_____ is an object on which the event occurs
22
New cards
Source
responsible for providing information of the occurred event to it's handler
23
New cards
Listener
It is also known as event handler
24
New cards
Listener
responsible for generating a response to an event
25
New cards
Listener
________ is an object that waits until it receives an event. Once the event
is received, the ________ processes the event and then returns (one word)
26
New cards
Listener
In this model, the ______ needs to be registered with the source object so that the listener can receive the event notification
27
New cards
ActionEvent
Is generated when button is clicked or the item of a list is double-
clicked
28
New cards
KeyEvent
On entering the character the ______ is generated
29
New cards
MouseEvent
This event indicates that a mouse action occurred in a component. This low-level event is generated by a component object for Mouse Events and Mouse motion events
30
New cards
WindowEvent
This low-level event is generated by a Window object when it is opened, closed, activated, deactivated or when the focus is transferred into or out of the Window
31
New cards
MouseMotion Event
indicates a mouse action occurred in a component. This low-level event is generated by a component object when a mouse is dragged or moved
32
New cards
PaintEvent
The object of this class represents the change in the state of a window
33
New cards
EventListener
represent the interfaces responsible to handle events
34
New cards
EventListener
It is a marker interface which every listener interface has to extend.
35
New cards
EventListener
This class is defined in java.utiI package
36
New cards
ActionListener
used for receiving the action events
37
New cards
ItemListener
used for receiving the item events
38
New cards
KeyListener
used for receiving the key events
39
New cards
MouseListener
used for receiving the mouse events
40
New cards
MouseMotionListener
used for receiving the mouse motion events
41
New cards
WindowListener
used for receiving the window events
42
New cards
FocusListener
used for receiving the focus events