Skip to Main Content

Java Programming

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!

actionPerformed called twice

807603Feb 24 2008 — edited Feb 24 2008
I have a JFrame application in which are two JComboBoxes. One has content that is static. I have an actionListener added to it, and I have checked, and there is only one added to it. For some reason, whenever I select something in it, actionPerformed gets called twice.

This presents a problem because in actionPerformed, I call a method that changes the content of the other JComboBox according to what was selected, and for some reason everything gets added twice.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2008
Added on Feb 24 2008
10 comments
1,186 views