mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-10 22:17:13 -06:00
ScrollPane: fixed lost styling on ScrollPane border if using Table as view component
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
FlatLaf Change Log
|
||||
==================
|
||||
|
||||
## 3.3-SNAPSHOT
|
||||
|
||||
#### Fixed bugs
|
||||
|
||||
- ScrollPane: Styling ScrollPane border properties did not work if view
|
||||
component is a Table.
|
||||
|
||||
|
||||
## 3.2
|
||||
|
||||
#### New features and improvements
|
||||
|
||||
@@ -330,6 +330,18 @@ public class FlatScrollPaneUI
|
||||
scrollpane.revalidate();
|
||||
scrollpane.repaint();
|
||||
break;
|
||||
|
||||
case "border":
|
||||
Object newBorder = e.getNewValue();
|
||||
if( newBorder != null && newBorder == UIManager.getBorder( "Table.scrollPaneBorder" ) ) {
|
||||
// JTable.configureEnclosingScrollPaneUI() replaces the scrollpane border
|
||||
// with another one --> re-apply style on new border
|
||||
borderShared = null;
|
||||
installStyle();
|
||||
scrollpane.revalidate();
|
||||
scrollpane.repaint();
|
||||
}
|
||||
break;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user