src/macosx/classes/com/apple/laf/AquaTabbedPaneCopyFromBasicUI.java

Print this page

        

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

@@ -3235,10 +3235,11 @@
             return new String("viewport.viewSize=" + viewport.getViewSize() + "\n" + "viewport.viewRectangle=" + viewport.getViewRect() + "\n" + "leadingTabIndex=" + leadingTabIndex + "\n" + "tabViewPosition=" + tabViewPosition);
         }
 
     }
 
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class ScrollableTabViewport extends JViewport implements UIResource {
         public ScrollableTabViewport() {
             super();
             setName("TabbedPane.scrollableViewport");
             setScrollMode(SIMPLE_SCROLL_MODE);

@@ -3249,10 +3250,11 @@
             }
             setBackground(bgColor);
         }
     }
 
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class ScrollableTabPanel extends JPanel implements UIResource {
         public ScrollableTabPanel() {
             super(null);
             setOpaque(tabPane.isOpaque());
             Color bgColor = UIManager.getColor("TabbedPane.tabAreaBackground");

@@ -3279,10 +3281,11 @@
                 child.setBounds(0, 0, getWidth(), getHeight());
             }
         }
     }
 
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class ScrollableTabButton extends javax.swing.plaf.basic.BasicArrowButton implements UIResource, SwingConstants {
         public ScrollableTabButton(final int direction) {
             super(direction, UIManager.getColor("TabbedPane.selected"), UIManager.getColor("TabbedPane.shadow"), UIManager.getColor("TabbedPane.darkShadow"), UIManager.getColor("TabbedPane.highlight"));
         }
     }

@@ -3583,10 +3586,11 @@
             }
         }
         return htmlViews;
     }
 
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class TabContainer extends JPanel implements UIResource {
         private boolean notifyTabbedPane = true;
 
         public TabContainer() {
             super(null);

@@ -3627,10 +3631,11 @@
                 tabPane.repaint(getBounds());
             }
         }
     }
 
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class CroppedEdge extends JPanel implements UIResource {
         private Shape shape;
         private int tabIndex;
         private int cropline;
         private int cropx, cropy;

@@ -3706,10 +3711,11 @@
      * method on the passed in Object.
      *
      * @version 1.6, 11/17/05
      * @author Scott Violet
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class LazyActionMap extends ActionMapUIResource {
         /**
          * Object to invoke <code>loadActionMap</code> on. This may be
          * a Class object.
          */