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

Newsgroups comp.lang.java.programmer
Date 2012-11-21 01:06 -0800
References <14c15e6e-6d2e-4555-811e-47ca3a7532f9@googlegroups.com>
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>

Show all headers | 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