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!

Action Listener Cpu Time

941495Jun 14 2012 — edited Jun 14 2012
I'm looking for a comparison of cpu time for different kinds of interface. The main ideas I have are:

1. Have one event listener in the frame and check by x/y position which GUI object is interacted with via an if, else if structure.
2. Have an event listener for every GUI object.
3. Have one motion listener in the frame.

I know that motion listeners are the most cpu consuming, by how much? Between 1 & 2 what would the difference be with a few objects, with many objects?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 12 2012
Added on Jun 14 2012
1 comment
1,415 views