Java Swing Tutorial - JLabel Example








Constructor

  1. Java JLabel() Constructor
  2. Java JLabel(Icon image) Constructor
  3. Java JLabel(Icon image, int horizontalAlignment) Constructor
  4. Java JLabel(String text) Constructor
  5. Java JLabel(String text, Icon icon, int horizontalAlignment) Constructor
  6. Java JLabel(String text, int horizontalAlignment) Constructor




Method

  1. Java JLabel.getDisplayedMnemonic()
  2. Java JLabel .getDisplayedMnemonicIndex ()
  3. Java JLabel .getHorizontalAlignment ()
  4. Java JLabel .getHorizontalTextPosition ()
  5. Java JLabel.getText()
  6. Java JLabel .setDisplayedMnemonic (char aChar)
  7. Java JLabel .setDisplayedMnemonic (int key)
  8. Java JLabel .setDisplayedMnemonicIndex (int index)
  9. Java JLabel .setHorizontalTextPosition (int textPosition)
  10. Java JLabel.setIcon(Icon icon)
  11. Java JLabel.setIconTextGap(int iconTextGap)
  12. Java JLabel.setLabelFor(Component c)
  13. Java JLabel.setText(String text)
  14. Java JLabel .setVerticalAlignment (int alignment)
  15. Java JLabel .setVerticalTextPosition (int textPosition)