• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ActionEvent generating wierd problems

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic