Associating a Label with a Component : Accessible « Swing « Java Tutorial

import javax.swing.JLabel;
import javax.swing.JTextField;

public class Main {
  public static void main(String[] argv) throws Exception {
    JTextField component = new JTextField();
    JLabel label = new JLabel("Name:");

14.126.1.implement Accessible to make your object accessible
14.126.2.Setting an Accessible Name for an Image Button
14.126.3.Setting a Description for Image Icons
14.126.4.Setting a Mnemonic for Buttons for Accessible
14.126.5.Setting a Mnemonic for a Menu for Accessible
14.126.6.Associating a Label with a Component
14.126.7.Setting a Keyboard Accelerator for a Menu Item