previous | start | next

## Constructing Related Actions

- Write helper method that constructs objects
- Pass variable information as parameters
- Declare parameters final

    public static ActionListener createGreetingButtonListener(

       final String message)

    {

       return new

          ActionListener()

          {

             public void actionPerformed(ActionEvent event)

             {

                textField.setText(message);

             }

          };

    }

previous | start | next