Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aress31 committed Dec 26, 2023
1 parent fe8df90 commit 634ea8c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main/java/swurg/gui/components/StatusPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 634ea8c

Please sign in to comment.