Write a Java program that displays a frame window 300 pixels wide and 200 pixels high with
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a Java program 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
Through experimentation, determine how the two arguments in the setLocation method affect the positioning of the window.
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: