Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: JComboBox with DefaultComboBoxModel doesn't allow to add or remove Date: Wed, 21 Nov 2012 06:31:41 -0800 Organization: Canadian Mind Products Lines: 13 Message-ID: <3dppa8tt2iudu7uqm4vbem28021g3psf5b@4ax.com> References: <6b564835-30c6-4fd7-86fb-d89693675be4@googlegroups.com> Reply-To: Roedy Green NNTP-Posting-Host: K2Qzzs3EAqXk5RLzfhxcSw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: csiph.com comp.lang.java.programmer:19835 On Wed, 21 Nov 2012 04:27:15 -0800 (PST), Rotariu Mihai 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.