mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
TabbedPane: fixed rendering of tab separators in scroll layout if scaled on HiDPI screens
This commit is contained in:
@@ -842,6 +842,17 @@ public class FlatTabbedPaneUI
|
|||||||
paintTabArea( g, tabPlacement, selectedIndex );
|
paintTabArea( g, tabPlacement, selectedIndex );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void paintTabArea( Graphics g, int tabPlacement, int selectedIndex ) {
|
||||||
|
// need to set rendering hints here too because this method is also invoked
|
||||||
|
// from BasicTabbedPaneUI.ScrollableTabPanel.paintComponent()
|
||||||
|
Object[] oldHints = FlatUIUtils.setRenderingHints( g );
|
||||||
|
|
||||||
|
super.paintTabArea( g, tabPlacement, selectedIndex );
|
||||||
|
|
||||||
|
FlatUIUtils.resetRenderingHints( g, oldHints );
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void paintTab( Graphics g, int tabPlacement, Rectangle[] rects,
|
protected void paintTab( Graphics g, int tabPlacement, Rectangle[] rects,
|
||||||
int tabIndex, Rectangle iconRect, Rectangle textRect )
|
int tabIndex, Rectangle iconRect, Rectangle textRect )
|
||||||
|
|||||||
Reference in New Issue
Block a user