Java coding Write the command needed to position a frame of

Java coding..

Write the command needed to position a frame of width 200 and height 300

at 100 pixels from the left and 100 pixels from the top of the screen.

Solution

Answer:

frame.setBounds(100, 100, 200, 300);

first parameter indicates 100 pixels from the left

second parameter indicates 100 pixels from the top of the screen.

third parameter indicates 200 width

fourth parameter indicates 300 height

Java coding.. Write the command needed to position a frame of width 200 and height 300 at 100 pixels from the left and 100 pixels from the top of the screen.Sol

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site