Skip to content

Commit

Permalink
harmonize UI by setting same width to label of textfields
Browse files Browse the repository at this point in the history
  • Loading branch information
aress31 committed Dec 24, 2023
1 parent c68be9e commit 4acda28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/swurg/gui/components/FilterPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public FilterPanel(JTextField filterTextField, TableRowSorter<?> tableRowSorter)
this.filterTextField = filterTextField;
this.tableRowSorter = tableRowSorter;

this.add(new JLabel("Filter (regular expression, case-sensitive):"));
this.add(new JLabel("Filter (regex, case-sensitive):"));
// Prevents JTextField from collapsing on resizes...
this.filterTextField.setMinimumSize(new Dimension(this.filterTextField.getPreferredSize()));
this.add(this.filterTextField);
Expand All @@ -34,7 +34,7 @@ private void updateFilter() {
try {
tableRowSorter.setRowFilter(regex.isEmpty() ? null : RowFilter.regexFilter(regex));
} catch (PatternSyntaxException e) {
// Display an error message if the regex pattern is invalid
// Show an error message if the regex pattern is invalid.
}
}

Expand Down

0 comments on commit 4acda28

Please sign in to comment.