Article View: borland.public.jbuilder.java.swing
Article #8763Re: Flashing
From: Paul Furbacher [TeamB]
Date: Wed, 19 Jul 2000 00:00
Date: Wed, 19 Jul 2000 00:00
32 lines
1502 bytes
1502 bytes
Velu Erwan wrote: > > yeah, now it's working like this ! > how can i fix it ? > The combo works as i want but it's flashing ! That indeed means, as was pointed out several times in a separate thread, that you are mixing light- and heavyweight components. Try the simplest case: 1. Create a new Frame, not a JFrame. 2. Place your JComboBox onto that Frame. Make sure it has a lot of room between the bottom edge of the combobox and the bottom of the frame. To do the test properly, you don't want to have the list exceed the bottom of the window. 3. Programmatically set three items in that combobox. 4. Run. Do you now see the drop-down list? (You shouldn't. You should only see a bit of flicker.) Now, do the same 4 steps, but use a JFrame. For more background on the light- / heavyweight issue, please read the "Hints and Tips.txt" file in the JBuilder folder. Paul Furbacher (TeamB)
Technical Details
Message-ID:
<3975E620.6486408C@home.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8l4l9q$rf03@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,3ceb9ef0c9922748 X-Google-Attributes: gid111d45,public From: "Paul Furbacher [TeamB]" <pnf@home.com> Subject: Re: Flashing Date: 2000/07/19 Message-ID: <3975E620.6486408C@home.com> X-Deja-AN: 648277538 Content-Transfer-Encoding: 7bit References: <8l4l9q$rf03@bornews.borland.com> X-Accept-Language: en,pdf Content-Type: text/plain; charset=us-ascii Organization: Reverse Alchemy, Inc. Mime-Version: 1.0 Reply-To: pnf@home.com Newsgroups: borland.public.jbuilder.java.swing