posted 20 years ago
Hi,
I have the following code :
JButton newB = new JButton("New");
new.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e)
performNew();
}
});
private void performNew()
{
// CAll another JDialog(CALL IT J2) that does some operations
}
The problem is on occasions when J2 closes the actionPerformed method gets called automatically. When I debugged it I found that the timestamp of the action event generated remains the same.
DOes anyone have Any idea why this is happening and is there any solution for this?
Thanks
Karthik