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


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

Re: JComboBox model doesn't allow to add or remove

Received by 10.224.111.140 with SMTP id s12mr12634588qap.5.1353488801287; Wed, 21 Nov 2012 01:06:41 -0800 (PST)
Received by 10.49.94.143 with SMTP id dc15mr2309026qeb.32.1353488801224; Wed, 21 Nov 2012 01:06:41 -0800 (PST)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!i9no3681623qap.0!news-out.google.com!gf5ni2982588qab.0!nntp.google.com!i9no3699306qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Wed, 21 Nov 2012 01:06:41 -0800 (PST)
In-Reply-To <14c15e6e-6d2e-4555-811e-47ca3a7532f9@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=217.194.34.115; posting-account=4sJNZwoAAAAATAGHXIC_nov7ymvdzS-L
NNTP-Posting-Host 217.194.34.115
References <14c15e6e-6d2e-4555-811e-47ca3a7532f9@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <86e441e1-ec2a-46c4-8116-2435f3778bf9@googlegroups.com> (permalink)
Subject Re: JComboBox model doesn't allow to add or remove
From Rotariu Mihai <rotariu.mihai7@gmail.com>
Injection-Date Wed, 21 Nov 2012 09:06:41 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.java.programmer:19832

Show key headers only | View raw


DefaultComboBoxModel model = new DefaultComboBoxModel();
jComboBox1 = new javax.swing.JComboBox(model);
jComboBox1.setModel(model);
 
This is how I set the model for the jComboBox. Can you please take a look and let me know why is not working?

Thanks

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


Thread

JComboBox model doesn't allow to add or remove Rotariu Mihai <rotariu.mihai7@gmail.com> - 2012-11-21 00:58 -0800
  Re: JComboBox model doesn't allow to add or remove Rotariu Mihai <rotariu.mihai7@gmail.com> - 2012-11-21 01:06 -0800

csiph-web