src/share/classes/javax/swing/Popup.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 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
@@ -226,10 +226,11 @@
/**
* Component used to house window.
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class HeavyWeightWindow extends JWindow implements ModalExclude {
HeavyWeightWindow(Window parent) {
super(parent);
setFocusableWindowState(false);
setType(Window.Type.POPUP);
@@ -265,8 +266,9 @@
* Used if no valid Window ancestor of the supplied owner is found.
* <p>
* PopupFactory uses this as a way to know when the Popup shouldn't
* be cached based on the Window.
*/
+ @SuppressWarnings("serial") // JDK-implementation class
static class DefaultFrame extends Frame {
}
}