My query is about JCOMBO BOX(Swing). I had created JCOMBO BOX which reponds to item state change event. How can I delete all items from JCOMBO BOX and tackle item state change event. I want to by pass the listner code in this particular situation. I had instantiated a default JCOMBO BOX item.
Code Sample JCOMBOBOX.removeallitems(); JCOMBOBOXitemstatechanged(itemevent evt){ some code }
RAJEEV BAHL
Greenhorn
Joined: Apr 26, 2001
Posts: 15
posted
0
Hi Everybody, Received no Reply from Forum. Hopefully Forum is live on practical issues related to Java programming Rajeev Bahl
Originally posted by RAJEEV BAHL: My query is about JCOMBO BOX(Swing). I had created JCOMBO BOX which reponds to item state change event. How can I delete all items from JCOMBO BOX and tackle item state change event. I want to by pass the listner code in this particular situation. I had instantiated a default JCOMBO BOX item.
Code Sample JCOMBOBOX.removeallitems(); JCOMBOBOXitemstatechanged(itemevent evt){ some code }
Veena Rani
Ranch Hand
Joined: Mar 09, 2000
Posts: 34
posted
0
first do combo.removeItemListener(Listener) then remove the items from JComboBox. veena
[This message has been edited by veena rani (edited May 03, 2001).]