• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JCOMBO BOX deletion

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
}


 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
They worship nothing. They say it's because nothing lasts forever. Like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic