91%(66)60 out of 66 people found this document helpful
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)SaveQuestion 2What layout manager should you use so that every component occupies the same size in the container?
SaveQuestion 3(5 points)Which of the following statements is for terminating the program when closing the frame?SaveQuestion 4(5 points)Which of the following statements about containers is correct?
SaveQuestion 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")SaveQuestion 6(5 points)How many items can be added into a JComboBox object?