Article View: borland.public.jbuilder.java.swing
Article #13326Re: JComboBox problem!
From: Paul Furbacher
Date: Tue, 11 Aug 1998 00:00
Date: Tue, 11 Aug 1998 00:00
18 lines
1352 bytes
1352 bytes
Aaron Gaalswyk wrote:
>
> >Does anyone know the answer to my problem?
>
> Perhaps. There is an open bug report (4163671) on JComboBox where it will
> not paint its dropdown list correctly if one of the added objects returns a
> 0-length string ("") in its toString() method. The workaround would be to
> check the length of the string before adding a new object.
Possibly, but more likely that it was a conflict between
JComboboxes and DecoratedFrame. Extending your frame
from JFrame does the trick. Actually (sounding like a
broken record here), if you watch very carefully, you'll
see some flicker as the combo box paints its drop-down
list and then is painted over very quickly by the DecoratedFrame.
Paul Furbacher
Technical Details
Message-ID:
<35D0CC1C.87E77CC0@bilbo.bio.purdue.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35CB57A1.97DFD4A0@jazzmail.com> <6qosgn$ig5@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,ade34785a066ac49 X-Google-Attributes: gid111d45,public From: Paul Furbacher <pf@bilbo.bio.purdue.edu> Subject: Re: JComboBox problem! Date: 1998/08/11 Message-ID: <35D0CC1C.87E77CC0@bilbo.bio.purdue.edu> X-Deja-AN: 380207365 Content-Transfer-Encoding: 7bit References: <35CB57A1.97DFD4A0@jazzmail.com> <6qosgn$ig5@forums.borland.com> Content-Type: text/plain; charset=us-ascii Organization: Biological Sciences, Purdue Univ. Mime-Version: 1.0 Reply-To: pf@bilbo.bio.purdue.edu Newsgroups: borland.public.jbuilder.java.swing