Java Basic
- FocusEvent is subclass of which of these classes?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
ComponentEvent
- Which of these events is generated when computer gains or loses input focus?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
FocusEvent
- Which of these are integer constants of ComponentEvent class?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The component event class defines 4 constants COMPONENT_HIDDEN, COMPONENT-MOVED, COMPONENT-RESIZE and COMPONENT-SHOWN.
- Which of these methods can be used to get reference to a component that was removed from a container?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The getChild() method returns a reference to the component that was added to or removed from the container.
- Which of these methods can be used to obtain the reference to the container that generated a ContainerEvent?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
getContainerEvent()