aspose file tools
The moose likes Swing / AWT / SWT and the fly likes JCOMBO BOX deletion Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JCOMBO BOX deletion
 
Similar Threads
Retaining JCombo values
Problem with JCombo Boxes
JCombo Box gives IllegalStateException while selection
adding items to jcombo box
JCombo and its listeners