GraphicsDevice[] gs = ge.getScreenDevices();
for (int j = 0; j < gs.length; j++) {
GraphicsDevice gd = gs[j];
GraphicsConfiguration[] gc = gd.getConfigurations();
for (int i=0; i < gc.length; i++) {
virtualBounds = virtualBounds.union(gc[i].getBounds());
}
}
this.setLocation( (virtualBounds.width-WIDTH)/2, (virtualBounds.height-HEIGHT)/2);
this.getContentPane().setBackground(new Color(180,180,255));
this.setCursor(new Cursor(Cursor.WAIT_CURSOR));