Article View: borland.public.jbuilder.java.language
Article #17544Re: help with displaying splash screen at start of program...
From: Alan McDonald
Date: Fri, 30 Oct 1998 00:00
Date: Fri, 30 Oct 1998 00:00
33 lines
1747 bytes
1747 bytes
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
>
Technical Details
Message-ID:
<71avk2$jc213@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>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/10/30 Message-ID: <71avk2$jc213@forums.borland.com> X-Deja-AN: 406491512 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> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language