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


Groups > comp.lang.java.gui > #4729

Re: JComboBox drop-down arrow disappears

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Nigel Wade <nmw-news@ion.le.ac.uk>
Newsgroups comp.lang.java.gui
Subject Re: JComboBox drop-down arrow disappears
Date Tue, 01 Nov 2011 17:31:41 +0000
Lines 23
Message-ID <9haonuFbrhU1@mid.individual.net> (permalink)
References <d05844e4-ec76-45ca-bcf3-f3fdabfb3356@v33g2000prm.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net fCfAuc63Xz0DGYHEa0lHMwEJ6KOe38xdUhPQAXGQY5Xh+Z3goU
Cancel-Lock sha1:xhtDRMDRI8mIvHcB7pqMi4MwWyk=
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.18) Gecko/20110616 SUSE/3.1.11 Thunderbird/3.1.11
In-Reply-To <d05844e4-ec76-45ca-bcf3-f3fdabfb3356@v33g2000prm.googlegroups.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:4729

Show key headers only | View raw


On 01/11/11 15:40, Amandil wrote:
> Does anyone else have this problem? Is it documented anywhere? Calling
> removeAllItems() on a JComboBox caused the drop-down arrow to
> disappear. It did not reappear even after the JComboBox was
> repopulated.
> (The code is rather long, though I can attach it if someone would need
> it to help with this issue).
>
> I'd appreciate anyone's help with this issue. (That would help me
> learn more about this group as well - useful after seeing people
> getting burned elsewhere...)
>

I have never seen this problem, and I have applications which regularly 
populate/de-populate JComboBox items.

Follow Daniel's advice. Ensure all your manipulation of the JComboBox is 
done on the EDT. Strip your code down to the smallest possible example 
which demonstrates the problem, if you intend to post. This action in 
itself very often identifies what's wrong.

-- 
Nigel Wade

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


Thread

JComboBox drop-down arrow disappears Amandil <mazwolfe@gmail.com> - 2011-11-01 08:40 -0700
  Re: JComboBox drop-down arrow disappears Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-11-01 09:29 -0700
  Re: JComboBox drop-down arrow disappears "John B. Matthews" <nospam@nospam.invalid> - 2011-11-01 13:06 -0400
    Re: JComboBox drop-down arrow disappears Roedy Green <see_website@mindprod.com.invalid> - 2011-11-01 23:20 -0700
  Re: JComboBox drop-down arrow disappears Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-11-01 17:31 +0000
    Re: JComboBox drop-down arrow disappears Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-11-01 10:48 -0700
    Re: JComboBox drop-down arrow disappears Roedy Green <see_website@mindprod.com.invalid> - 2011-11-01 23:22 -0700
  Re: JComboBox drop-down arrow disappears Amandil <mazwolfe@gmail.com> - 2011-11-01 13:22 -0700
  Re: JComboBox drop-down arrow disappears Roedy Green <see_website@mindprod.com.invalid> - 2011-11-01 23:19 -0700
  Re: JComboBox drop-down arrow disappears Bent C Dalager <bcd@pvv.ntnu.no> - 2011-11-02 09:41 +0000
  Re: JComboBox drop-down arrow disappears "dp" <newsgroups@phagia.net> - 2011-11-06 12:14 +0000

csiph-web