Java Question
Originally Posted by Gink5,Oct 17 2005, 11:55 AM
I need the code to size a swing window to the default desktop resolution. Any help would be much appreciated.
frame = new JFrame("Window");
frame.setBounds(screenSize.width/12,
screenSize.height/12,
(screenSize.width/12) * 8,
(screenSize.height/12) * 5);
Modify to your required window proportions
Thread
Thread Starter
Forum
Replies
Last Post






