mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 15:07:11 -06:00
TabbedPane: fixed content separator in scroll tab policy
This commit is contained in:
@@ -181,12 +181,15 @@ public class FlatTestFrame
|
||||
|
||||
private void explicitColors( Container container, boolean explicit, ColorUIResource restoreColor ) {
|
||||
for( Component c : container.getComponents() ) {
|
||||
if( c instanceof JPanel ) {
|
||||
explicitColors( (JPanel) c, explicit, restoreColor );
|
||||
continue;
|
||||
}
|
||||
|
||||
c.setForeground( explicit ? Color.blue : restoreColor );
|
||||
c.setBackground( explicit ? Color.red : restoreColor );
|
||||
|
||||
if( c instanceof JPanel )
|
||||
explicitColors( (JPanel) c, explicit, restoreColor );
|
||||
else if( c instanceof JScrollPane ) {
|
||||
if( c instanceof JScrollPane ) {
|
||||
Component view = ((JScrollPane)c).getViewport().getView();
|
||||
if( view != null ) {
|
||||
view.setForeground( explicit ? Color.magenta : restoreColor );
|
||||
|
||||
Reference in New Issue
Block a user