Skip to content

Commit

Permalink
prepared UI for standard l&f
Browse files Browse the repository at this point in the history
  • Loading branch information
Wisser committed Oct 19, 2018
1 parent 99a4349 commit fbeeea6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/gui/net/sf/jailer/ui/pathfinder/PathFinderView.java
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,7 @@ private void initComponents() {
jPanel1.setLayout(new java.awt.GridBagLayout());

jSplitPane1.setResizeWeight(1.0);
jSplitPane1.setContinuousLayout(true);

jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Union of all shortest paths without excluded tables."));
jPanel2.setForeground(java.awt.Color.white);
Expand Down Expand Up @@ -1078,6 +1079,13 @@ Set<Table> getExcludedTables() {
private DefaultTableModel exclusionTableModel;

private void initExclusionTable(Set<Integer> nonExcludablesColumns) {
List<SortKey> keys = new ArrayList<SortKey>();
if (exclusionTable.getRowSorter() != null) {
keys.addAll(exclusionTable.getRowSorter().getSortKeys());
}
if (keys.isEmpty()) {
keys.add(new SortKey(2, SortOrder.DESCENDING));
}
exclusionTable.setColumnSelectionAllowed(false);
exclusionTable.setRowSelectionAllowed(false);
exclusionTableModel = new DefaultTableModel(new String[] { "Excluded", "Table", "Neighbors" }, 0) {
Expand Down Expand Up @@ -1145,8 +1153,8 @@ public Component getTableCellRendererComponent(JTable table, Object value, boole
exclusionTable.getColumnModel().getColumn(0).setCellRenderer(renderer);
exclusionTable.setDefaultRenderer(Object.class, renderer);
exclusionTable.setAutoCreateRowSorter(true);
List<SortKey> keys = new ArrayList<SortKey>();
keys.add(new SortKey(2, SortOrder.DESCENDING));
exclusionTable.setShowHorizontalLines(false);
exclusionTable.setShowVerticalLines(false);
exclusionTable.getRowSorter().setSortKeys(keys);

// Set<Table> closure = new HashSet<Table>(pathGraph.getVisitedExcludedTables());
Expand Down

0 comments on commit fbeeea6

Please sign in to comment.