Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cant Caprute ActionEvent?

 
Nathan Paris
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to be able to capture all user events. I am using the Toolkit.getDefaultToolkit().addAWTEventListener() to register a listener for the events. I am able to get FocusEvents and others, but I never recieve an ActionEvent.
I thought I would recieve one when a user clicked on a button?
Any one know what I am doing wrong?

Thanks
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ActionEvent consists of multiple low level events such as KeyEvents or MouseEvents. I suppose that is the reason you don't get notified. Take a closer look at the inheritance structure of the Event classes.
chantal
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!