mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 15:07:11 -06:00
Table: fixed repainting of rounded selection when selection changes
This commit is contained in:
@@ -132,6 +132,14 @@ public class FlatComponents2Test
|
||||
initTableEditors( table1 );
|
||||
initTableEditors( xTable1 );
|
||||
|
||||
// table selection listeners
|
||||
table1.getSelectionModel().addListSelectionListener( e -> {
|
||||
System.out.printf( "row sel %d-%d adj=%b\n", e.getFirstIndex(), e.getLastIndex(), e.getValueIsAdjusting() );
|
||||
} );
|
||||
table1.getColumnModel().getSelectionModel().addListSelectionListener( e -> {
|
||||
System.out.printf( "column sel %d-%d adj=%b\n", e.getFirstIndex(), e.getLastIndex(), e.getValueIsAdjusting() );
|
||||
} );
|
||||
|
||||
// JXTable
|
||||
Highlighter simpleStriping = HighlighterFactory.createSimpleStriping();
|
||||
PatternPredicate patternPredicate = new PatternPredicate( "^J", 2 );
|
||||
|
||||
Reference in New Issue
Block a user