Java Basic
- Which of these methods is used to obtain the object that generated a WindowEvent?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
getMethod()
- Which of these are integer constants of TextEvent class?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
TextEvent defines a single integer constant TEXT_VALUE_CHANGED.
- Which of these methods can be used to change location of an event?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
TranslatePoint()
- 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()
- Which of these events is generated when the component is added or removed?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
A ContainerEvent is generated when a component is added to or removed from a container. It has two integer constants COMPONENT_ADDED & COMPONENT_REMOVED.