src/share/classes/javax/swing/JDialog.java

Print this page

        

*** 652,662 **** if (supportsWindowDecorations) { setUndecorated(true); getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG); } } ! sun.awt.SunToolkit.checkAndSetPolicy(this, true); } /** * Called by the constructor methods to create the default * {@code rootPane}. --- 652,662 ---- if (supportsWindowDecorations) { setUndecorated(true); getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG); } } ! sun.awt.SunToolkit.checkAndSetPolicy(this); } /** * Called by the constructor methods to create the default * {@code rootPane}.