Question: #java help me please Which of the following statements can correctly change the background color of the button b1 to yellow* (10 Points) b1.setBackground(yellow) b1.setForeground(yellow)

#java help me please
Which of the following statements can correctly change the background color of the button "b1" to yellow* (10 Points) b1.setBackground("yellow) b1.setForeground("yellow") b1. setForeground(Color.yellow); b1.setBackground(Color.yellow) Which of the following is NOT a legal color in Java (10 Points) Color.red Color c = new Color (0,0,0); Color c = new Color(255,255,255) Colorc = new Color(100, 200, 300); 4 The statement that sets the font name for button "b1" to "Times New Roman", the font style to italic, and size to 20 is: * (10 Points) b.Font(new Font("Times New Roman", Font.ITALIC, 20)); b.setFont(new Font("Times New Roman", Font.ITALIC, 20)); b.setFont(new Font("Times New Roman", ITALIC, 20); b.setFont(Font("Times New Roman", ITALIC, 20))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
