Swing11(){//constructor
    jButton.addActionListener(this); 
    jTextField.addActionListener(this);
 

Figure 3