Theme Editor: fixed preview of focused list and table selection

This commit is contained in:
Karl Tauber
2021-09-05 22:05:21 +02:00
parent 8640dee053
commit 0b6247851b
3 changed files with 37 additions and 1 deletions

View File

@@ -59,9 +59,9 @@ class FlatThemePreviewAll
list1.setSelectedIndex( 1 );
tree1.setSelectionRow( 1 );
table1.setRowSelectionInterval( 1, 1 );
table1.setRowSorter( new TableRowSorter<>( table1.getModel() ) );
table1.getRowSorter().toggleSortOrder( 0 );
table1.setRowSelectionInterval( 1, 1 );
table1.uiDefaultsGetter = preview::getUIDefaultProperty;
EventQueue.invokeLater( () -> {