SE450: Constructing Related Actions [27/41] Previous pageContentsNext page

public static ActionListener createGreetingButtonListener(
final String message)
{
return new
ActionListener()
{
public void actionPerformed(ActionEvent event)
{
textField.setText(message);
}
};
}

Previous pageContentsNext page