Article View: borland.public.jbuilder.java.swing
Article #115Re: loading screen for Java application
From: Paul Furbacher [TeamB]
Date: Wed, 08 Feb 2006 02:53
Date: Wed, 08 Feb 2006 02:53
37 lines
2469 bytes
2469 bytes
tom wrote:
> Thanks for your suggestion. I do not need a progress dialog. I just want to
> use a real simple splash screen to display some text while the java
> application is loading.
> I tried JDialog and JWindow; however, I can not get the text to display on
> the contentPane unless I set the setModal to true, which it's kind of
> defeating the purpose.
>
> Once I set the setModal to true, it takes over the current process thread.
> It will not continue until I manuall close the dialog.
>
> Am I missing something here? Please take a look at the following code snip.
Yes, you are missing exactly what was discussed in those
articles. Please take the time to look at them. All
you have to do is apply the principle in those articles.
The only difference is that you are not changing the text.
Conceptually it's the same whether there's dynamic update
or not. It's a threading issue, and those articles will
prime your thinking to deal with it correctly.
--
Paul Furbacher (TeamB)
Save time, search the archives:
http://info.borland.com/newsgroups/ngsearch.html
Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you.
Technical Details
Message-ID:
<43e95c3d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<43e7dbf3@newsgroups.borland.com> <43e81693$1@newsgroups.borland.com> <43e93e25$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,3d616149f9b71a58 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 07 Feb 2006 21:53:08 -0500 From: "Paul Furbacher [TeamB]" <pfurbacher@mac.com> Organization: Reverse Alchemy, Inc. User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: loading screen for Java application References: <43e7dbf3@newsgroups.borland.com> <43e81693$1@newsgroups.borland.com> <43e93e25$1@newsgroups.borland.com> In-Reply-To: <43e93e25$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.142.194.228 Message-ID: <43e95c3d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1139366973 69.142.194.228 (7 Feb 2006 18:49:33 -0700) Lines: 37 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail