Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started