6931347: SynthTabbedPaneUI.paintTabArea() is not called when tabbed pane is painted
authorrupashka
Mon, 15 Mar 2010 16:16:06 +0300
changeset 5132 34d52d014724
parent 5131 03037c4967f4
child 5133 0a1777c5b601
6931347: SynthTabbedPaneUI.paintTabArea() is not called when tabbed pane is painted Reviewed-by: peterz
jdk/src/share/classes/javax/swing/plaf/synth/SynthTabbedPaneUI.java
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthTabbedPaneUI.java	Thu Mar 11 17:39:33 2010 +0300
+++ b/jdk/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) {