Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #19835

Re: JComboBox with DefaultComboBoxModel doesn't allow to add or remove

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: JComboBox with DefaultComboBoxModel doesn't allow to add or remove
Date 2012-11-21 06:31 -0800
Organization Canadian Mind Products
Message-ID <3dppa8tt2iudu7uqm4vbem28021g3psf5b@4ax.com> (permalink)
References <6b564835-30c6-4fd7-86fb-d89693675be4@googlegroups.com>

Show all headers | View raw


On Wed, 21 Nov 2012 04:27:15 -0800 (PST), Rotariu Mihai
<rotariu.mihai7@gmail.com> wrote, quoted or indirectly quoted someone
who said :

>model.removeAllElements(); and model.addElement(s); is not workin

What are the symptoms it is not working?

Perhaps you need a manual repaint after you have done your changes.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
Students who hire or con others to do their homework are as foolish 
as couch potatoes who hire others to go to the gym for them. 

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

JComboBox with DefaultComboBoxModel doesn't allow to add or remove Rotariu Mihai <rotariu.mihai7@gmail.com> - 2012-11-21 04:27 -0800
  Re: JComboBox with DefaultComboBoxModel doesn't allow to add or remove Roedy Green <see_website@mindprod.com.invalid> - 2012-11-21 06:31 -0800
  Re: JComboBox with DefaultComboBoxModel doesn't allow to add or remove markspace <-@.> - 2012-11-21 10:41 -0800
    Re: JComboBox with DefaultComboBoxModel doesn't allow to add or remove Rotariu Mihai <rotariu.mihai7@gmail.com> - 2012-11-22 04:03 -0800
      Re: JComboBox with DefaultComboBoxModel doesn't allow to add or remove Knute Johnson <nospam@knutejohnson.com> - 2012-11-22 10:37 -0800
  Re: JComboBox with DefaultComboBoxModel doesn't allow to add or remove "John B. Matthews" <nospam@nospam.invalid> - 2012-11-21 20:45 -0500

csiph-web