When an application uses many components, rather than deriving just one class from the JFrame class, it is often better to encapsulate smaller groups of related components and their event listeners into their own class. A commonly used technique to do this is:
A) To extend a class from the JAbstractButton class to contain other components and their related code
B) To extend a class from the JComponent class to contain other components and their related code
C) To extend a class from the JPanel class to contain other components and their related code
D) To extend a class from the JFrame class to contain other components and their related code
C) To extend a class from the JPanel class to contain other components and their related code
You might also like to view...
The strategy of denying the “circular-wait” condition ________.
a) is a deadlock prevention technique that promotes portability b) creates a linear ordering of resources c) maximizes resource utilization d) none of the above
Explain print services in the Mac environment.
What will be an ideal response?
Which of the following is NOT a type of message you can send with a smartphone?
A. text message B. picture message C. media message D. video message
FIGURE AC 5-1 You would open the Group, Sort, and Total pane, shown in the accompanying figure, by clicking the Group & Sort button in the Grouping & Totals group on the ____ tab.
A. Page Setup B. Format C. Arrange D. Design