The method __________ sets the background color to yellow in JFrame frame.

a. setBackground(Color.YELLOW)
b. frame.setBackGround(Color.yellow)
c. frame.setBackground(Color.YELLOW)
d. setBackground(Color.yellow)

Respuesta :

Answer:

c. frame.setBackground(Color.YELLOW)

Explanation:

The method that sets the color of the background to yellow in J Frame is the option c as it retrieved the content pane for the frame and applied the set background () technique that inherited from the component for the color change

Therefore the option c is correct

And, the rest of the options are incorrect

ACCESS MORE