Article View: borland.public.jbuilder.java.swing
Article #9077Re: JCombo Box does not open
From: Martin Zwosta
Date: Tue, 13 Jun 2000 00:00
Date: Tue, 13 Jun 2000 00:00
42 lines
2576 bytes
2576 bytes
Hello Greg, in the meanwhile I could work with your solution and it wirks perfectly fine. Thank you very much for the help! The only sad thing is, that this means, that I cannot use the decorated-frame with swing-components but instead have to activate the "Swing-only" - option when using the assistant to start a project with an application. But this maybe a necessary step anyway. Maritn Zwosta Greg Hamer schrieb: > The dropdown box is rendered in a different pane (the glass pane?) than the > rest of the ui. Therefore it needs to live under a container that has such a > pane, i.e. something that has a JRootPane such as JWindow, JFrame, JDialog. > If the top level container is not one of these, the dropdown list of the > JComboBox will not show up. > > Martin Zwosta <m.zwosta@t-online.de> wrote in message > news:393BA072.34CB39BB@t-online.de... > > Hello everybody, > > > > I simply want to design a JComboBox with the GUI-Builder and want to > > display some strings in it for selection. The ComboBox actually works, > > which means I can change its values by keyboard and can get the selected > > items. But the box does not open when I click on the small arrow or the > > box itself ??!! > > I left the default constructor and added the items with "addItem", I > > also created an String-array and invoked the constructor to implement an > > String array on the JComboBox, both times the same result: the box > > works, but won't open. I also changed the look & feel, no result. I can > > write my own little program to display a JComboBox and it opens up on > > mouseclick, but when I try to add a JComboBox to the Window that the GUI > > - Builder constructed by hand -coding it fails: results s.a.. > > > > I'm getting really puzzled. Is there any small thing or something alike > > that I miss? > > > > Help is very much appreciated and thanks a lot in advance, > > > > Martin > >
Technical Details
Message-ID:
<39465031.DBAAB50@t-online.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<393BA072.34CB39BB@t-online.de> <8hgnaq$ii02@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,68a30d08003fcdf9 X-Google-Attributes: gid111d45,public From: Martin Zwosta <m.zwosta@t-online.de> Subject: Re: JCombo Box does not open Date: 2000/06/13 Message-ID: <39465031.DBAAB50@t-online.de> X-Deja-AN: 634009664 Content-Transfer-Encoding: 7bit References: <393BA072.34CB39BB@t-online.de> <8hgnaq$ii02@bornews.borland.com> To: Greg Hamer <ghamer@corp.netzero.net> X-Accept-Language: de Content-Type: text/plain; charset=us-ascii X-Trace: 13 Jun 2000 08:07:20 -0800, 62.155.217.146 MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing