Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #19836
| From | markspace <-@.> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: JComboBox with DefaultComboBoxModel doesn't allow to add or remove |
| Date | 2012-11-21 10:41 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <k8j785$bia$1@dont-email.me> (permalink) |
| References | <6b564835-30c6-4fd7-86fb-d89693675be4@googlegroups.com> |
On 11/21/2012 4:27 AM, Rotariu Mihai wrote: > The problem is > that before having the AutoComplete feature I could just say > jComboBox1.removeAllItems(); but now because of the model I have to > do it with model.removeAllElements(); Why do you have to do that? If you're using the right kind of model, shouldn't removeAllItems() call the model appropriately? Please, please, please show us an SSCCE -- a short, self-contained compilable example. We can't really tell what is going on unless you provide one. sscce.org
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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