Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JCOMBO BOX deletion

 
RAJEEV BAHL
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
first do
combo.removeItemListener(Listener)
then remove the items from JComboBox.
veena

[This message has been edited by veena rani (edited May 03, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic