🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9033

Re: JCombo Box does not open

#9033
From: Greg Hamer
Date: Mon, 05 Jun 2000 00:00
30 lines
1993 bytes
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: <8hgnaq$ii02@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <393BA072.34CB39BB@t-online.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,68a30d08003fcdf9
X-Google-Attributes: gid111d45,public
From: "Greg Hamer" <ghamer@corp.netzero.net>
Subject: Re: JCombo Box does not open
Date: 2000/06/05
Message-ID: <8hgnaq$ii02@bornews.borland.com>
X-Deja-AN: 631366603
References: <393BA072.34CB39BB@t-online.de>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing