Package docking

Class StatusBar

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class StatusBar extends JPanel
Provides a status bar panel which has a text area to the left. The status bar may customized with additional status components added to the right of the status text.
See Also:
  • Method Details

    • getPreferredSize

      public Dimension getPreferredSize()
      Overrides:
      getPreferredSize in class JComponent
    • removeStatusItem

      public void removeStatusItem(JComponent c)
      Remove the specified status item.
      Parameters:
      c - status component previously added.
    • getStatusText

      public String getStatusText()
      Returns the current text in this status bar
      Returns:
      the text
    • setStatusText

      @Deprecated public void setStatusText(String text, boolean isActiveWindow)
      Deprecated.
      Call setStatusText(String) instead. Remove after 9.3
      Deprecated. Call setStatusText(String) instead.
      Parameters:
      text - the text
      isActiveWindow - this parameter is ignored
    • setStatusText

      public void setStatusText(String text)
      Sets the status text
      Parameters:
      text - the text
    • clearStatusMessages

      public void clearStatusMessages()
    • getToolTipText

      public String getToolTipText()
      Overridden to update the tooltip text to display a small history of status messages.
      Overrides:
      getToolTipText in class JComponent
      Returns:
      The new tooltip text.
      See Also: