Class JLabelFor

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public class JLabelFor extends JLabel
JLabel that assigns itself to a component. This means that the label's enabled state is synchronized with the component and that any mnemonic set in the label will be respected as focus transfer to the component
Since:
8.6.1
See Also:
  • Constructor Details

    • JLabelFor

      public JLabelFor(String text, Icon icon, int horizontalAlignment)
    • JLabelFor

      public JLabelFor(String text, int horizontalAlignment)
    • JLabelFor

      public JLabelFor(String text)
    • JLabelFor

      public JLabelFor(Icon image, int horizontalAlignment)
    • JLabelFor

      public JLabelFor(Icon image)
    • JLabelFor

      public JLabelFor(String text, Icon icon)
    • JLabelFor

      public JLabelFor(String text, Icon icon, JComponent labelFor)
    • JLabelFor

      public JLabelFor()
    • JLabelFor

      public JLabelFor(JComponent labelFor)
    • JLabelFor

      public JLabelFor(Icon image, JComponent labelFor)
    • JLabelFor

      public JLabelFor(String text, JComponent labelFor)
  • Method Details

    • name

      public JLabelFor name(String name)
      Calls setName(). Allows for chaining
      Parameters:
      name -
      Returns: