Article View: borland.public.jbuilder.java.language
Article #17560Re: help with displaying splash screen at start of program...
From: Alan McDonald
Date: Sun, 01 Nov 1998 00:00
Date: Sun, 01 Nov 1998 00:00
72 lines
3137 bytes
3137 bytes
Richard,
Thanks for your input but what's a media tracker and why does exactly the
same code bring up an imagecontrol init exception on Windows 98? I'd love to
deliver just one thing with java which appears to be platform independent.
Why don't I need a media tracker on my NT? Why does my NT not "use" the
image before it's loaded?
thanks
Alan McDonald
>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:
<71h4ou$s0u3@forums.borland.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> <3639F2D6.1FCF97DE@inprise.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: "Alan McDonald" <alan@meta.com.au> Subject: Re: help with displaying splash screen at start of program... Date: 1998/11/01 Message-ID: <71h4ou$s0u3@forums.borland.com> X-Deja-AN: 407198355 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> <3639F2D6.1FCF97DE@inprise.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language