public void actionPerformed(ActionEvent e){
    jLabel.setText(e.getActionCommand());
  }//end actionPerformed
 
}//end class Swing11
 

Figure 7