src/share/classes/javax/swing/plaf/metal/MetalTitlePane.java

Print this page

        

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

@@ -47,10 +47,11 @@
  * be created.
  *
  * @author Terry Kellerman
  * @since 1.4
  */
+@SuppressWarnings("serial") // Superclass is not serializable across versions
 class MetalTitlePane extends JComponent {
     private static final Border handyEmptyBorder = new EmptyBorder(0,0,0,0);
     private static final int IMAGE_HEIGHT = 16;
     private static final int IMAGE_WIDTH = 16;
 

@@ -779,10 +780,11 @@
     }
 
     /**
      * Actions used to <code>close</code> the <code>Window</code>.
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class CloseAction extends AbstractAction {
         public CloseAction() {
             super(UIManager.getString("MetalTitlePane.closeTitle",
                                       getLocale()));
         }

@@ -794,10 +796,11 @@
 
 
     /**
      * Actions used to <code>iconfiy</code> the <code>Frame</code>.
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class IconifyAction extends AbstractAction {
         public IconifyAction() {
             super(UIManager.getString("MetalTitlePane.iconifyTitle",
                                       getLocale()));
         }

@@ -809,10 +812,11 @@
 
 
     /**
      * Actions used to <code>restore</code> the <code>Frame</code>.
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class RestoreAction extends AbstractAction {
         public RestoreAction() {
             super(UIManager.getString
                   ("MetalTitlePane.restoreTitle", getLocale()));
         }

@@ -824,10 +828,11 @@
 
 
     /**
      * Actions used to <code>restore</code> the <code>Frame</code>.
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class MaximizeAction extends AbstractAction {
         public MaximizeAction() {
             super(UIManager.getString("MetalTitlePane.maximizeTitle",
                                       getLocale()));
         }

@@ -841,10 +846,11 @@
     /**
      * Class responsible for drawing the system menu. Looks up the
      * image to draw from the Frame associated with the
      * <code>JRootPane</code>.
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class SystemMenuBar extends JMenuBar {
         public void paint(Graphics g) {
             if (isOpaque()) {
                 g.setColor(getBackground());
                 g.fillRect(0, 0, getWidth(), getHeight());