jdk/src/share/classes/javax/swing/Popup.java
changeset 23697 e556a715949f
parent 23010 6dadb192ad81
equal deleted inserted replaced
23696:7deff68428ef 23697:e556a715949f
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   226 
   226 
   227 
   227 
   228     /**
   228     /**
   229      * Component used to house window.
   229      * Component used to house window.
   230      */
   230      */
       
   231     @SuppressWarnings("serial") // Superclass is not serializable across versions
   231     static class HeavyWeightWindow extends JWindow implements ModalExclude {
   232     static class HeavyWeightWindow extends JWindow implements ModalExclude {
   232         HeavyWeightWindow(Window parent) {
   233         HeavyWeightWindow(Window parent) {
   233             super(parent);
   234             super(parent);
   234             setFocusableWindowState(false);
   235             setFocusableWindowState(false);
   235             setType(Window.Type.POPUP);
   236             setType(Window.Type.POPUP);
   265      * Used if no valid Window ancestor of the supplied owner is found.
   266      * Used if no valid Window ancestor of the supplied owner is found.
   266      * <p>
   267      * <p>
   267      * PopupFactory uses this as a way to know when the Popup shouldn't
   268      * PopupFactory uses this as a way to know when the Popup shouldn't
   268      * be cached based on the Window.
   269      * be cached based on the Window.
   269      */
   270      */
       
   271     @SuppressWarnings("serial") // JDK-implementation class
   270     static class DefaultFrame extends Frame {
   272     static class DefaultFrame extends Frame {
   271     }
   273     }
   272 }
   274 }