I have a JComboBox with 3 items. When the user chooses one of the items, I
would like that to fire a corresponding action, just like it would work in a
Menu. I tried simply adding an Action object directly
(JComboBox.addItem(action)) and it doesn't work. How do I do this? Thanks.
ak - 04 Aug 2004 23:46 GMT
> I have a JComboBox with 3 items. When the user chooses one of the items, I
> would like that to fire a corresponding action, just like it would work in a
> Menu. I tried simply adding an Action object directly
> (JComboBox.addItem(action)) and it doesn't work. How do I do this? Thanks.
http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html

Signature
Andrei Kouznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader