Class ComponentWithMessage<T extends JComponent>

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
ca.phon.ui.decorations.ComponentWithMessage<T>
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class ComponentWithMessage<T extends JComponent> extends JComponent
A wrapper for a component with a displayed message (usually a warning/error) at either the bottom or top of the component.
See Also:
  • Constructor Details

    • ComponentWithMessage

      public ComponentWithMessage(T component)
    • ComponentWithMessage

      public ComponentWithMessage(T component, String message)
    • ComponentWithMessage

      public ComponentWithMessage(T component, Icon icn, String message)
    • ComponentWithMessage

      public ComponentWithMessage(T component, Icon icn, String message, boolean messageVisible)
  • Method Details

    • getComponent

      public T getComponent()
    • getLabel

      public JLabel getLabel()
    • updateLabel

      public void updateLabel(Icon icon, String message, boolean visible)