setPreferredSize across 2 monitors

I have 2 monitors and I want a JFrame to be displayed across the 2 monitors.

when I force the frame to be set with the size it seems to have the dimensions I entered but does not span across the 2 monitors.

JFrame frametest =new JFrame();

frametest.setPreferredSize(new Dimension(2280,1520));// width and height.

does Java have a limitation of setting the size/preferredsize or am I going about this the wrong way?

thanks in advance for your help.

[584 byte] By [ricochet_008a] at [2007-11-27 11:51:08]
# 1

oops, I just tried using setSize first then setPreferredSize and it worked. sorry for the wasted thread.

ricochet_008a at 2007-7-29 18:36:22 > top of Java-index,Desktop,Core GUI APIs...