src/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.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

@@ -3447,10 +3447,11 @@
                               "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);

@@ -3461,10 +3462,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");

@@ -3491,10 +3493,11 @@
                 child.setBounds(0, 0, getWidth(), getHeight());
             }
         }
     }
 
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class ScrollableTabButton extends BasicArrowButton implements UIResource,
                                                                             SwingConstants {
         public ScrollableTabButton(int direction) {
             super(direction,
                   UIManager.getColor("TabbedPane.selected"),

@@ -3816,10 +3819,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);

@@ -3860,10 +3864,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;