Quiz 3 - Question 1 The method sets the background color to yellow in JFrame frame Question 1 options setBackground(Color.yellow

Quiz 3 - Question 1 The method sets the background color to...

This preview shows page 1 - 5 out of 13 pages.

Question 1The method __________ sets the background color to yellow in JFrame frame. Question 1 options: setBackground(Color.yellow)frame.setBackGround(Color.yellow)frame.setBackground(Color.YELLOW)setBackground(Color.YELLOW)Save Question 2What layout manager should you use so that every component occupies the same size in the container?
Save Question 3(5 points)Which of the following statements is for terminating the program when closing the frame? Save Question 4(5 points)Which of the following statements about containers is correct?
Save Question 5(5 points)Which method call puts the string "Result" into the TextField named result? Question 5 options: result.setText("Result")result.findText()result.newText("Result")result.text("Result") Save Question 6(5 points)How many items can be added into a JComboBox object?
Unlimited 1 0 2 Save

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture