< prev index next >

src/java.desktop/share/classes/javax/print/ServiceUI.java

Print this page

        

@@ -207,25 +207,12 @@
                                        y + gcBounds.y,
                                        services, defaultIndex,
                                        flavor, attributes,
                                        (Dialog)owner);
         }
-        Rectangle dlgBounds = dialog.getBounds();
 
-        // get union of all GC bounds
-        GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
-        GraphicsDevice[] gs = ge.getScreenDevices();
-        for (int j=0; j<gs.length; j++) {
-            gcBounds =
-                gcBounds.union(gs[j].getDefaultConfiguration().getBounds());
-        }
 
-        // if portion of dialog is not within the gc boundary
-        if (!gcBounds.contains(dlgBounds)) {
-            // put in the center relative to parent frame/dialog
-            dialog.setLocationRelativeTo(owner);
-        }
         dialog.show();
 
         if (dialog.getStatus() == ServiceDialog.APPROVE) {
             PrintRequestAttributeSet newas = dialog.getAttributes();
             Class<?> dstCategory = Destination.class;
< prev index next >