I have 2 to 3 projects using GUI.. But the problem i always face is when i move my program form one pc to another with different screen size it never fit both the screens. Help will appreciated. :)
Printable View
I have 2 to 3 projects using GUI.. But the problem i always face is when i move my program form one pc to another with different screen size it never fit both the screens. Help will appreciated. :)
You need to read up on and learn to use the Java Swing layout managers as they will help you make GUI's that work well with different screen resolutions, sizes, and OS's. The tutorials can be found here.
Maybe the following call can help you: Toolkit.getDefaultToolkit().getScreenSize()
kind regards,
Jos
Thanks to both of you for your replies i will implement both of the above ways in my next project and will one that works the best.
Thank you soo much.
Happy coding. :)