Total window size

Dear all,Is there an easy way of setting a JFrames initial size to the user's total window size?Thanks,Fred
[143 byte] By [fw9189] at [2007-9-26 2:05:33]
# 1
Maybe this helps:Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();frame.setSize(screenSize);
wagner99 at 2007-6-29 8:50:41 > top of Java-index,Archived Forums,Swing...
# 2
There is one problem with that method, although I use it as well, which is that it doesn't take into account the size of taskbars, so your frame will extend underneath the taskbars. One option is:frame.setSize(screenSize.width, screenSize.height-10); m
wywiwyg at 2007-6-29 8:50:41 > top of Java-index,Archived Forums,Swing...