001package jmri.util.swing;
002
003import java.awt.Dimension;
004import javax.swing.JLabel;
005
006/**
007 * Status Bar
008 *
009 * A little status bar widget that can be put at the bottom of a panel.
010 */
011public class StatusBar extends JLabel {
012
013    /**
014     * Creates a new instance of StatusBar
015     */
016    public StatusBar() {
017        super();
018        super.setPreferredSize(new Dimension(100, 16));
019        setMessage("Ready");
020    }
021
022    /**
023     * Update the status bar message
024     * @param message the message to add
025     */
026    public void setMessage(String message) {
027        setText(" " + message);
028    }
029}