Article View: borland.public.jbuilder.java.swing
Article #12677Re: Inconsistent painting
From: John P. McGrath
Date: Sun, 22 Nov 1998 00:00
Date: Sun, 22 Nov 1998 00:00
22 lines
1235 bytes
1235 bytes
Wil Rodriguez <wilrod@rocketmail.com> wrote: > I've put together a very simple application. All you do is select an > image file (jpeg or gif) through the File Dialog box and the app > displays it. The thing is that the images are not always diplayed right > away. If an image is not displayed right away I have to resize the app > to see the image. My guess is that you are sizing the component that displays the image according to the size of the image. If this is the case, you have to make sure that the image has completely loaded before you do this -- images are normally loaded in a background thread. You can ensure that an image has loaded with the java.awt.MediaTracker class. -- Regards, John P. McGrath <mcgrath@enter.net> <jpm@nscs.fast.net>
Technical Details
Message-ID:
<MPG.10c1be6a84fa6f35989729@forums.inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<364F8438.6398AEB3@rocketmail.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,a15fd3542a12d6db X-Google-Attributes: gid111d45,public From: mcgrath@enter.net (John P. McGrath) Subject: Re: Inconsistent painting Date: 1998/11/22 Message-ID: <MPG.10c1be6a84fa6f35989729@forums.inprise.com> X-Deja-AN: 414455429 References: <364F8438.6398AEB3@rocketmail.com> Organization: Software Consulting Services Newsgroups: borland.public.jbuilder.java.swing