Assume you have declared a JFrame named welcomeFrame. Write the statement to set the welcomeFrame object's size to 300 pixels horizontally by 110 pixels vertically. Create a second statement to set the JFrame's title to display the text "My Sized Frame".

What will be an ideal response?


welcomeFrame.setSize(300, 110);
welcomeFrame.setTitle("My Sized Frame");

Computer Science & Information Technology

You might also like to view...

To use the Live Distribute feature, you select three or more objects, then press and hold the ____________________ while you drag a bounding box handle.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A(n) ________ table is the table to which you are appending the fields in an append query

Fill in the blank(s) with correct word

Computer Science & Information Technology

The ________ keys on the keyboard allow a user to cycle through all open windows

A) Alt+Tab B) Ctrl+Shift C) Shift+Tab D) Alt+Ctrl

Computer Science & Information Technology

At the end of the data character, one or two ____ bits are added to signal the end of the frame.?

A. ?start B. ?parity C. ?check D. ?stop

Computer Science & Information Technology