Multiple Choice
Which of the following statements should be added to this code fragment to set the frame size to a width of 400 and a height of 200?
Final int FRAME_WIDTH = 400;
Final int FRAME_HEIGHT = 200;
JFrame frame = new JFrame() ;
A) frame.size = (FRAME_WIDTH, FRAME_HEIGHT) ;
B) frame.addSize(FRAME_WIDTH, FRAME_HEIGHT) ;
C) frame.setSize(FRAME_WIDTH, FRAME_HEIGHT) ;
D) frame.setSize(FRAME_HEIGHT, FRAME_WIDTH) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q26: Which java package must be imported if
Q38: Event listeners are often installed as _
Q43: Which of the following statements about events
Q44: Which of the following is an event
Q44: Consider the following code snippet:<br>Public static void
Q45: Place drawing instructions inside the _ method,
Q45: Consider the following code snippet:<br>JPanel panel =
Q51: What's the difference between a text field
Q53: The Graphics class is part of the
Q59: Which container is used to group multiple