SE450: User Interface Actions [24/41] Previous pageContentsNext page

helloButton.addActionListener(new
ActionListener()
{
public void actionPerformed(ActionEvent event)
{
textField.setText("Hello, World");
}
});

Previous pageContentsNext page