mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-16 05:15:22 +00:00
6931347: SynthTabbedPaneUI.paintTabArea() is not called when tabbed pane is painted
Reviewed-by: peterz
This commit is contained in:
parent
a55a44a6e2
commit
1be45512de
@ -489,23 +489,6 @@ public class SynthTabbedPaneUI extends BasicTabbedPaneUI
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user