Article View: borland.public.jbuilder.java.swing
Article #13075GIF image flicker
From: Alex Humphreys
Date: Fri, 02 Oct 1998 00:00
Date: Fri, 02 Oct 1998 00:00
19 lines
1185 bytes
1185 bytes
I've created a splash screen by extending Window (instead of
Dialog--thanks, Greg H) and including a GIF image in the Window.
Trouble is it flickers horribly as it loads (it's bad with interlacing
turned on, is worse with it off, and was not nearly so bad when
extending Dialog instead of Window). Is there a way to get it to paint
smoothly? Thanks.
--Alex
Here's the relevant code:
splash_img.setFlat(true);
splash_img.setImage(ImageLoader.loadFromResource("SITEsplash.GIF",
this));
xYLayout1.setWidth(486);
xYLayout1.setHeight(324);
this.setLayout(xYLayout1);
this.add(splash_img, new XYConstraints(0, 0, 486, 324));
this.add(panel1);
Technical Details
Message-ID:
<36151A61.DC8795B3@sema4.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,63559af4ae2f864,start X-Google-Attributes: gid111d45,public From: Alex Humphreys <ahumphreys@sema4.com> Subject: GIF image flicker Date: 1998/10/02 Message-ID: <36151A61.DC8795B3@sema4.com> X-Deja-AN: 397117938 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing