ScrollPane: fixed lost styling on ScrollPane border if using Table as view component

This commit is contained in:
Karl Tauber
2023-08-13 23:23:03 +02:00
parent 5436ea88d8
commit 40418607e5
2 changed files with 20 additions and 0 deletions

View File

@@ -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

View File

@@ -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;
}
};
}