Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to intercept all events sent to subcomponents of a JFrame

843804May 15 2002 — edited Sep 15 2005
Hello.
The title says everything, i think.
I need to make a gui where there would be a user validity timeout if no action is done during a certain period. (then, a modal dialog would show up, asking for a login/pass).
I could do that by modifying each and every swing components to have some date of last use" data, and a thread in the window, bla bla bla... but this is too heavy and crappy to me.
What i would like to do is intercept all events, note the date, and send them normally to who they were sent to originally.
Has anyone an idea?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 13 2005
Added on May 15 2002
6 comments
44 views