From 4acda28aba5bf902eab9db3e9e257c6a2973ef67 Mon Sep 17 00:00:00 2001 From: unknown <11601622+aress31@users.noreply.github.com> Date: Sun, 24 Dec 2023 04:57:36 +0000 Subject: [PATCH] harmonize UI by setting same width to label of textfields --- src/main/java/swurg/gui/components/FilterPanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/swurg/gui/components/FilterPanel.java b/src/main/java/swurg/gui/components/FilterPanel.java index 0692532..110db06 100644 --- a/src/main/java/swurg/gui/components/FilterPanel.java +++ b/src/main/java/swurg/gui/components/FilterPanel.java @@ -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); @@ -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. } }