001package edu.pdx.cs410J.grader.poa.ui;
002
003import com.google.inject.Singleton;
004import edu.pdx.cs410J.grader.poa.StatusMessageView;
005
006import javax.swing.*;
007
008@Singleton
009public class StatusMessageWidget extends JPanel implements StatusMessageView {
010
011  private final JLabel label;
012
013  public StatusMessageWidget() {
014    this.label = new JLabel("");
015    this.add(this.label);
016  }
017
018  @Override
019  public void setStatusMessage(String message) {
020    this.label.setText(message);
021  }
022}