JComboBox Listener Problem

I have a jcombobox with actionlistener but everytime i click the jcombobox the event will execute twice...I also tried with itemlistener and still the same result.thanks in advance.
[209 byte] By [Yannixa] at [2007-11-27 8:06:37]
# 1

There is a SWING forum, you know?

Anyways, go with ItemListener. You will get two events for clicks, one for the newly selected item and one for the newly deselected item. If you are only interested in one of the two, add a condition that reacts on the ItemEvent.stateChange property, see http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/ItemEvent.html#getStateChange()

thomas.behra at 2007-7-12 19:49:13 > top of Java-index,Java Essentials,Java Programming...
# 2
> There is a SWING forum, you know?sorry I didn't know... where can I find the swing forum?
Yannixa at 2007-7-12 19:49:13 > top of Java-index,Java Essentials,Java Programming...
# 3
http://forum.java.sun.com/forum.jspa?forumID=57
thomas.behra at 2007-7-12 19:49:13 > top of Java-index,Java Essentials,Java Programming...
# 4

> sorry I didn't know... where can I find the swing forum?

Excuse me, I mentioned it to you at least 4 time before:

http://forum.java.sun.com/thread.jspa?threadID=5180793

http://forum.java.sun.com/thread.jspa?threadID=5184310

http://forum.java.sun.com/thread.jspa?threadID=5184821

http://forum.java.sun.com/thread.jspa?threadID=5185488

Thats why I've stopped answering questions. Why waste time answering if you don't even take the time to read the answers.

camickra at 2007-7-12 19:49:13 > top of Java-index,Java Essentials,Java Programming...
# 5
> sorry I didn't know... where can I find the swing forum?Method 1: Look at the list of forums. Scroll down until you see "Swing".Method 2: Look at the list of forums. Press Control-F and type "Swing" into the search box. Click on the button to do the search.
DrClapa at 2007-7-12 19:49:13 > top of Java-index,Java Essentials,Java Programming...