Article View: borland.public.jbuilder.java.language
Article #17554Re: help with displaying splash screen at start of program...
From: Richard Wilkman
Date: Fri, 30 Oct 1998 00:00
Date: Fri, 30 Oct 1998 00:00
60 lines
2725 bytes
2725 bytes
Alan:
A common reason for an image to not show is failure to use a
MediaTracker to load it. Java doesn't wait for the image to be
completely loaded before continuing on at runtime. This almost always
leads to "use" of the image before it's loaded. You have a valid,
non-null image object -- it just has no contents.
-Rich
Alan McDonald wrote:
>
> Yeh, this works fine
> /*
> * Show main frame (generated by JBuilder)
> */
> frame.setVisible(true);
> splash.toFront();
> /*
> * Close, hide splash window
> */
> try {
> Thread.sleep(3 * 1000); /* wait for 3000 ms (= 3 seconds) */
> } catch (InterruptedException iex) {
> /* do nothing */
> }
> splash.setVisible(false);
>
> But I still need to work out why the image isn;t seen on my linux box. I see
> from the other groups there mught be a problem loading images into
> imagecontrols in the jdk classes for linux. This may be the reason.
> Alan
>
> Benjamin Rutt wrote in message
> <01be0387$44207a40$dfe2bcc0@ITS.city.bloomington.in.us>...
> >> Also - does anyone know how, then to set the Z order of the windows so
> >the
> >> main app frame comes up behind the splash frame. Then we can place the
> >> splash visible after the main frame visible.
> >
> >I would suspect that frame.toFront() and frame.toBack() would do the trick,
> >possibly followed by a repaint() or invalidate()/validate();
> >
> >Ben
> >
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Senior Quality Assurance Engineer
Borland JBuilder Team
If you see something that looks like an opinion up there,
it's mine and mine alone.
Mail sent to me from the newsgroups won't bounce but will
be ignored. If I have time, I'll respond, but you have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<3639F2D6.1FCF97DE@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bdfec6$139a4920$dfe2bcc0@ITS.city.bloomington.in.us> <01be00e9$40c3b420$dfe2bcc0@ITS.city.bloomington.in.us> <718nje$ghm4@forums.borland.com> <01be0387$44207a40$dfe2bcc0@ITS.city.bloomington.in.us> <71avk2$jc213@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,4720e0d8c1bf48cb X-Google-Attributes: gidf74b3,public From: Richard Wilkman <rwilkman@inprise.com> Subject: Re: help with displaying splash screen at start of program... Date: 1998/10/30 Message-ID: <3639F2D6.1FCF97DE@inprise.com> X-Deja-AN: 406731611 Content-Transfer-Encoding: 7bit References: <01bdfec6$139a4920$dfe2bcc0@ITS.city.bloomington.in.us> <01be00e9$40c3b420$dfe2bcc0@ITS.city.bloomington.in.us> <718nje$ghm4@forums.borland.com> <01be0387$44207a40$dfe2bcc0@ITS.city.bloomington.in.us> <71avk2$jc213@forums.borland.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language