src/java.desktop/share/classes/java/awt/Dialog.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1995, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 34,48 **** import java.security.PrivilegedAction; import javax.accessibility.*; import sun.awt.AppContext; import sun.awt.AWTPermissions; import sun.awt.SunToolkit; - import sun.awt.PeerEvent; import sun.awt.util.IdentityArrayList; import sun.awt.util.IdentityLinkedList; import java.security.AccessControlException; - import java.util.function.BooleanSupplier; /** * A Dialog is a top-level window with a title and a border * that is typically used to take some form of input from the user. * --- 34,46 ----
*** 747,760 **** * This method is called internally by the toolkit and should * not be called directly by programs. * @see Component#isDisplayable * @see #removeNotify */ - @SuppressWarnings("deprecation") public void addNotify() { synchronized (getTreeLock()) { ! if (parent != null && parent.getPeer() == null) { parent.addNotify(); } if (peer == null) { peer = getToolkit().createDialog(this); --- 745,757 ---- * This method is called internally by the toolkit and should * not be called directly by programs. * @see Component#isDisplayable * @see #removeNotify */ public void addNotify() { synchronized (getTreeLock()) { ! if (parent != null && parent.peer == null) { parent.addNotify(); } if (peer == null) { peer = getToolkit().createDialog(this);