I created a great program on a wide screen laptop that has dimensions 1350 x 650. Throughout the entire program I have the Width = 1350 and Height = 650. When I try to run the program on a non-wide screen, everything gets squished and the whole thing is a mess.
Is there a way to make it so the program ALWAYS has a width of 1350...and if the computer's monitor is not wide enough then the program's frame just goes off the screen?
I have tried moving the program so half of it is off the screen and trying to drag its side to stretch it out to 1350, but it won't let me.
I've been trying to find an answer to this problem forever and have not been successful...If you could just direct me to an article, I don't mind reading...however I've tried googling the idea...but have gotten no where.
P.S. I am using setPreferredSize(...) for all my components...and they are all tied/related to the width and height.
I am also using
where frame is my JFrame....