Java Basic
- 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.
- Which of these events is generated when the size of an event is changed?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
A ComponentEvent is generated when the size, position or visibility of a component is changed.
- Which of these constant value will change when the button at the end of scroll bar was clicked to increase its value?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
UNIT_INCREMENT VALUE will change when the button at the end of scroll bar was clicked to increase its value.
- Which of these methods can be used to know the degree of adjustment made by the user?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The amount of the adjustment can be obtained from the getvalue() method, it returns an integer value corresponding to the amount of adjustment made.
- Which of these methods can be used to determine the type of adjustment event?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
getAdjustmentType()