jdk/src/share/classes/javax/swing/JDialog.java
changeset 12661 6cf8b7116579
parent 7500 dec4b445efc6
child 20455 f6f9a0c2796b
equal deleted inserted replaced
12660:76c54631149e 12661:6cf8b7116579
   652             if (supportsWindowDecorations) {
   652             if (supportsWindowDecorations) {
   653                 setUndecorated(true);
   653                 setUndecorated(true);
   654                 getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
   654                 getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
   655             }
   655             }
   656         }
   656         }
   657         sun.awt.SunToolkit.checkAndSetPolicy(this, true);
   657         sun.awt.SunToolkit.checkAndSetPolicy(this);
   658     }
   658     }
   659 
   659 
   660     /**
   660     /**
   661      * Called by the constructor methods to create the default
   661      * Called by the constructor methods to create the default
   662      * {@code rootPane}.
   662      * {@code rootPane}.