mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-09 16:25:10 +03: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 );
|
||||
}
|
||||
|
||||
@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
|
||||
protected void paintTab( Graphics g, int tabPlacement, Rectangle[] rects,
|
||||
int tabIndex, Rectangle iconRect, Rectangle textRect )
|
||||
|
||||
Reference in New Issue
Block a user