From 634ea8c780cf7cdf67c510c28a860a4bac01c77b Mon Sep 17 00:00:00 2001 From: unknown <11601622+aress31@users.noreply.github.com> Date: Tue, 26 Dec 2023 04:54:24 +0000 Subject: [PATCH] small changes --- src/main/java/swurg/gui/components/StatusPanel.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/swurg/gui/components/StatusPanel.java b/src/main/java/swurg/gui/components/StatusPanel.java index e55f046..2fd496f 100644 --- a/src/main/java/swurg/gui/components/StatusPanel.java +++ b/src/main/java/swurg/gui/components/StatusPanel.java @@ -8,21 +8,19 @@ public class StatusPanel extends JPanel { - private final JLabel statusLabel; + private final JLabel statusLabel = new JLabel(COPYRIGHT); public StatusPanel() { - statusLabel = new JLabel(COPYRIGHT); - initComponents(); } private void initComponents() { - statusLabel.putClientProperty("html.disable", null); + this.statusLabel.putClientProperty("html.disable", null); this.add(statusLabel); } public void updateStatus(String status, Color color) { - statusLabel.setForeground(color); - statusLabel.setText(status); + this.statusLabel.setForeground(color); + this.statusLabel.setText(status); } }