The definition of the anonymous listener class,
Listing 5. Register an action listener on the button. |
---|
button.addActionListener(new ActionListener() {//Begin the class definition public void actionPerformed(ActionEvent e){ Picture picture = world.getPicture(); |
File: bn.htm | [Next] | [Prev] |