GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] gs = ge.getScreenDevices();
int deviceToUse = Integer.valueOf(getProperty(G_PROPERTIES.GRAPHICS_MONITOR));
if (deviceToUse >= gs.length) deviceToUse =statechum.GlobalConfiguration.DEFAULT_SCREEN;// use the first one if cannot use the requested one.
GraphicsConfiguration gc = gs[deviceToUse].getDefaultConfiguration();
// from http://java.sun.com/j2se/1.4.2/docs/api/index.html
Rectangle shape = gc.getBounds();
Rectangle rect = new Rectangle(new Rectangle(shape.x, shape.y,400,300));
if (name == G_PROPERTIES.LOWER)
rect.y+=rect.getHeight()+30;
result = new WindowPosition(rect,deviceToUse);
windowCoords.put(name.name(),result);