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
Correct Answer:
Verified
Q34: Event listeners must:
A) implement an interface
B) be
Q35: If button1 is a JButton object, which
Q36: When a component is added to a
Q37: You use the _ key word in
Q38: Which of the following statements creates a
Q40: To include Swing and AWT components in
Q41: The System.exit method will end the application.
Q42: Some of the common GUI components are
Q43: The following statement adds the FlowLayout manager
Q44: You would use this command at the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents