Solved

Which of the Following Statements Should Be Added to This

Question 48

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions