Hello,
i have two questions concerning programming in Java.
1st Q:
i have more than frame opened for the same program and when i want to close one of them, all the program closes as well.
basically i write this code for closing the frame when clicking on a button:
JButton exit= new JButton("Exit");
exit.addActionListener( new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
System.exit(0);
}
});
2nd Q:
Why do the above addActionKistener method only deals with final variables ??
Thank you in advance