Class ActionLabel

    • Constructor Detail

      • ActionLabel

        public ActionLabel()
        Constructs an ActionLabel instance. The label is aligned against the leading edge of its display area, and centered vertically.
      • ActionLabel

        public ActionLabel​(String text)
        Constructs an ActionLabel instance with the specified text. The label is aligned against the leading edge of its display area, and centered vertically.
        Parameters:
        text - The text to be displayed by the label.
      • ActionLabel

        public ActionLabel​(String text,
                           ActionListener action)
        Constructs an ActionLabel instance with the specified text and action. The label is aligned against the leading edge of its display area, and centered vertically.
        Parameters:
        text - The text to be displayed by the label.
        action - The action to be performed if the label is clicked.
    • Method Detail

      • addActionListener

        public void addActionListener​(ActionListener actionListener)
      • removeActionListener

        public void removeActionListener​(ActionListener actionListener)
      • fireActionPerformed

        protected void fireActionPerformed()
      • fireActionPerformed

        protected void fireActionPerformed​(ActionEvent event)