public void addApplyActionListener(ActionListener al){
  applyButton.addActionListener(al);
}

public void addApplyActionListener ( ActionListener al ) { applyButton . addActionListener ( al ) ; }
adds an additional listener to the apply button so that other panels can perform other actions if the button is pressed .
