src/share/classes/javax/swing/plaf/basic/BasicDesktopPaneUI.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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

@@ -302,10 +302,11 @@
     }
 
     /**
      * The default DesktopManager installed by the UI.
      */
+    @SuppressWarnings("serial") // JDK-implementation class
     private class BasicDesktopManager extends DefaultDesktopManager
             implements UIResource {
     }
 
     private static class Actions extends UIAction {

@@ -630,10 +631,11 @@
 
     /**
      * Handles restoring a minimized or maximized internal frame.
      * @since 1.3
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     protected class OpenAction extends AbstractAction {
         public void actionPerformed(ActionEvent evt) {
             JDesktopPane dp = (JDesktopPane)evt.getSource();
             SHARED_ACTION.setState(dp, Actions.RESTORE);
         }

@@ -644,10 +646,11 @@
     }
 
     /**
      * Handles closing an internal frame.
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     protected class CloseAction extends AbstractAction {
         public void actionPerformed(ActionEvent evt) {
             JDesktopPane dp = (JDesktopPane)evt.getSource();
             SHARED_ACTION.setState(dp, Actions.CLOSE);
         }

@@ -662,10 +665,11 @@
     }
 
     /**
      * Handles minimizing an internal frame.
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     protected class MinimizeAction extends AbstractAction {
         public void actionPerformed(ActionEvent evt) {
             JDesktopPane dp = (JDesktopPane)evt.getSource();
             SHARED_ACTION.setState(dp, Actions.MINIMIZE);
         }

@@ -680,10 +684,11 @@
     }
 
     /**
      * Handles maximizing an internal frame.
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     protected class MaximizeAction extends AbstractAction {
         public void actionPerformed(ActionEvent evt) {
             JDesktopPane dp = (JDesktopPane)evt.getSource();
             SHARED_ACTION.setState(dp, Actions.MAXIMIZE);
         }

@@ -698,10 +703,11 @@
     }
 
     /**
      * Handles navigating to the next internal frame.
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     protected class NavigateAction extends AbstractAction {
         public void actionPerformed(ActionEvent evt) {
             JDesktopPane dp = (JDesktopPane)evt.getSource();
             dp.selectFrame(true);
         }