wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes JCOMBO BOX deletion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JCOMBO BOX deletion" Watch "JCOMBO BOX deletion" New topic
Author

JCOMBO BOX deletion

RAJEEV BAHL
Greenhorn

Joined: Apr 26, 2001
Posts: 15
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
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
first do
combo.removeItemListener(Listener)
then remove the items from JComboBox.
veena

[This message has been edited by veena rani (edited May 03, 2001).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JCOMBO BOX deletion