:D Thank you.
Type: Posts; User: TP-Oreilly
:D Thank you.
One last thing, you said:
"It has to be an ActionListener. Note that ActionListener is an interface, so the actual instance is going to be a class that implements ActionListener, or a class that...
Thanks very much for the help, both in this thread and the others :)
The thing what threw me was the curly braces after creating the object because ive never seen object creation followed by curly...
Hmm. Could you answer my few questions?
1. Am i right in thinking that the parameter of the addActionListener method has to be an ActionListener object which defines what to do when the item is...
Hi,
In my simple JFrame window application I have the following code:
exitItem.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
System.exit(0);