Problem

Write a Java application that displays a frame window 300 pixels wide and 200   pixels hig...

Write a Java application that displays a frame window 300 pixels wide and 200   pixels high with the title My First Frame. Place the frame so that its top, left corner is at a position 50 pixels from the top of the screen and 100 pixels from the left of the screen. To position a window at a specified location, you use the setLocation method, as in

//assume mainWindow is declared and created

frame.setLocation( 50, 50 );

Through experimentation, determine how the two arguments in the setLocation method affect the positioning of the window.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 2