changeset 2211:d86c053ca938

6931347: SynthTabbedPaneUI.paintTabArea() is not called when tabbed pane is painted Reviewed-by: peterz
author rupashka
date Mon, 15 Mar 2010 16:16:06 +0300
parents ce3770eadf85
children 1224c1388e86
files src/share/classes/javax/swing/plaf/synth/SynthTabbedPaneUI.java
diffstat 1 files changed, 0 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/plaf/synth/SynthTabbedPaneUI.java	Thu Mar 11 17:39:33 2010 +0300
+++ b/src/share/classes/javax/swing/plaf/synth/SynthTabbedPaneUI.java	Mon Mar 15 16:16:06 2010 +0300
@@ -489,23 +489,6 @@
     }
 
 
-    /**
-     * @inheritDoc
-     */
-    @Override
-    protected void paintTabArea(Graphics g, int tabPlacement,
-                                int selectedIndex) {
-        // This can be invoked from ScrollabeTabPanel
-        Insets insets = tabPane.getInsets();
-        int x = insets.left;
-        int y = insets.top;
-        int width = tabPane.getWidth() - insets.left - insets.right;
-        int height = tabPane.getHeight() - insets.top - insets.bottom;
-
-        paintTabArea(tabAreaContext, g, tabPlacement, selectedIndex,
-                     new Rectangle(x, y, width, height));
-    }
-
     private void paintTabArea(SynthContext ss, Graphics g,
                                 int tabPlacement, int selectedIndex,
                                 Rectangle tabAreaBounds) {