mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-15 12:55:07 +00:00
7034619: Scrollable Tabs don't appear with JDK7 Synth based LaF, different from Java 5/6
Reviewed-by: alexp
This commit is contained in:
parent
86b4b082bb
commit
8afd78fe59
@ -488,6 +488,18 @@ public class SynthTabbedPaneUI extends BasicTabbedPaneUI
|
||||
paintContentBorder(tabContentContext, g, tabPlacement, selectedIndex);
|
||||
}
|
||||
|
||||
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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user