If button1 is a JButton object, which of the following statements will make its background blue?
A) button1.makeBackground(BLUE) ;
B) button1.setBackground(Color.BLUE) ;
C) button1.makeBackground(Color.BLUE) ;
D) button1.set.Background(BLUE) ;
Correct Answer:
Verified
Q30: This layout manager arranges components in five
Q31: This is a basic window that has
Q32: How many radio buttons can be selected
Q33: The variable panel references a JPanel object.
Q34: Event listeners must:
A) implement an interface
B) be
Q36: When a component is added to a
Q37: You use the _ key word in
Q38: Which of the following statements creates a
Q39: When an application uses many components, rather
Q40: To include Swing and AWT components in
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