Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #21487 > unrolled thread

splash screen

Started bybob smith <bob@coolfone.comze.com>
First post2013-01-17 13:11 -0800
Last post2013-01-18 15:47 -0800
Articles 9 — 3 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  splash screen bob smith <bob@coolfone.comze.com> - 2013-01-17 13:11 -0800
    Re: splash screen Roedy Green <see_website@mindprod.com.invalid> - 2013-01-17 14:22 -0800
    Re: splash screen Lew <lewbloch@gmail.com> - 2013-01-17 14:40 -0800
    Re: splash screen Roedy Green <see_website@mindprod.com.invalid> - 2013-01-17 17:18 -0800
      Re: splash screen Roedy Green <see_website@mindprod.com.invalid> - 2013-01-17 22:09 -0800
        Re: splash screen bob smith <bob@coolfone.comze.com> - 2013-01-18 12:31 -0800
          Re: splash screen Roedy Green <see_website@mindprod.com.invalid> - 2013-01-18 15:01 -0800
      Re: splash screen bob smith <bob@coolfone.comze.com> - 2013-01-18 07:39 -0800
        Re: splash screen Roedy Green <see_website@mindprod.com.invalid> - 2013-01-18 15:47 -0800

#21487 — splash screen

Frombob smith <bob@coolfone.comze.com>
Date2013-01-17 13:11 -0800
Subjectsplash screen
Message-ID<2e28b877-c7a5-43b5-91d5-55bf0400d79e@googlegroups.com>
What is the standard way most desktop Java programmers do a splash screen?

I know there is the class java.awt.SplashScreen, but it seems like it might be more trouble than its worth.  I'm not quite sure how to do the manifest.mf business in Eclipse.

[toc] | [next] | [standalone]


#21490

FromRoedy Green <see_website@mindprod.com.invalid>
Date2013-01-17 14:22 -0800
Message-ID<mcugf81lbk89vchgb5n18lscoe6rcaldh4@4ax.com>
In reply to#21487
On Thu, 17 Jan 2013 13:11:31 -0800 (PST), bob smith
<bob@coolfone.comze.com> wrote, quoted or indirectly quoted someone
who said :

>What is the standard way most desktop Java programmers do a splash screen?
>
>I know there is the class java.awt.SplashScreen, but it seems like
 it might be more trouble than its worth.  I'm not quite sure how to
do the manifest.mf business in Eclipse.

To do a splash screen properly, you want to get it up there very early
on in the load process.  

I know of three ways to accomplish this:

1. use Java Web Start http://mindprod.com/jgloss/javawebstart.html

2. use Jet http://mindprod.com/jgloss/jet.html

3. use a C kicker to display the splash and launch the JVM.

For me splash screens are usually annoying. They force their way to
the front blocking from doing other work while the program loads.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
The first 90% of the code accounts for the first 90% of the development time.
The remaining 10% of the code accounts for the other 90% of the development 
time. 
~ Tom Cargill  Ninety-ninety Law 

[toc] | [prev] | [next] | [standalone]


#21495

FromLew <lewbloch@gmail.com>
Date2013-01-17 14:40 -0800
Message-ID<d97eb6b6-abed-4ec4-a148-fda7bc83f22a@googlegroups.com>
In reply to#21487
bob smith wrote:
> I'm not quite sure how to do the manifest.mf business in Eclipse.

What do you mean by "the manifest.mf [sic] business"?

Are you referring to the steps documented in 
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftasks-35.htm
or something else?

--
Lew

[toc] | [prev] | [next] | [standalone]


#21507

FromRoedy Green <see_website@mindprod.com.invalid>
Date2013-01-17 17:18 -0800
Message-ID<2m8hf8dn5va1afqngil3js5a8f08fe5c0f@4ax.com>
In reply to#21487
On Thu, 17 Jan 2013 13:11:31 -0800 (PST), bob smith
<bob@coolfone.comze.com> wrote, quoted or indirectly quoted someone
who said :

>What is the standard way most desktop Java programmers do a splash screen?

see http://mindprod.com/jgloss/splash.html
It documents six different techniques with sample code for most of
them.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
The first 90% of the code accounts for the first 90% of the development time.
The remaining 10% of the code accounts for the other 90% of the development 
time. 
~ Tom Cargill  Ninety-ninety Law 

[toc] | [prev] | [next] | [standalone]


#21509

FromRoedy Green <see_website@mindprod.com.invalid>
Date2013-01-17 22:09 -0800
Message-ID<aophf8t85d5o43ragjtadhub204taum8ou@4ax.com>
In reply to#21507
On Thu, 17 Jan 2013 17:18:40 -0800, Roedy Green
<see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted
someone who said :

>It documents six different techniques with sample code for most of
>them.

now seven.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
The first 90% of the code accounts for the first 90% of the development time.
The remaining 10% of the code accounts for the other 90% of the development 
time. 
~ Tom Cargill  Ninety-ninety Law 

[toc] | [prev] | [next] | [standalone]


#21541

Frombob smith <bob@coolfone.comze.com>
Date2013-01-18 12:31 -0800
Message-ID<3d8ac348-5ed1-45bb-9aec-1cd78902fbc1@googlegroups.com>
In reply to#21509
On Friday, January 18, 2013 12:09:20 AM UTC-6, Roedy Green wrote:
> On Thu, 17 Jan 2013 17:18:40 -0800, Roedy Green
> 
> <see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted
> 
> someone who said :
> 
> 
> 
> >It documents six different techniques with sample code for most of
> 
> >them.
> 
> 
> 
> now seven.
> 
> -- 
> 
> Roedy Green Canadian Mind Products http://mindprod.com
> 
> The first 90% of the code accounts for the first 90% of the development time.
> 
> The remaining 10% of the code accounts for the other 90% of the development 
> 
> time. 
> 
> ~ Tom Cargill  Ninety-ninety Law

Also, is it okay if I use that splash code in my project?

Thanks.

[toc] | [prev] | [next] | [standalone]


#21552

FromRoedy Green <see_website@mindprod.com.invalid>
Date2013-01-18 15:01 -0800
Message-ID<d2ljf8dd1h6r0up4q89mfm015jlg3ctfbq@4ax.com>
In reply to#21541
On Fri, 18 Jan 2013 12:31:03 -0800 (PST), bob smith
<bob@coolfone.comze.com> wrote, quoted or indirectly quoted someone
who said :

>
>Also, is it okay if I use that splash code in my project?

of course. Why do you think I posted it?
-- 
Roedy Green Canadian Mind Products http://mindprod.com
The first 90% of the code accounts for the first 90% of the development time.
The remaining 10% of the code accounts for the other 90% of the development 
time. 
~ Tom Cargill  Ninety-ninety Law 

[toc] | [prev] | [next] | [standalone]


#21519

Frombob smith <bob@coolfone.comze.com>
Date2013-01-18 07:39 -0800
Message-ID<77b40be7-e4cf-470e-809f-2b00ba142469@googlegroups.com>
In reply to#21507
On Thursday, January 17, 2013 7:18:40 PM UTC-6, Roedy Green wrote:
> On Thu, 17 Jan 2013 13:11:31 -0800 (PST), bob smith
> 
> <bob@coolfone.comze.com> wrote, quoted or indirectly quoted someone
> 
> who said :
> 
> 
> 
> >What is the standard way most desktop Java programmers do a splash screen?
> 
> 
> 
> see http://mindprod.com/jgloss/splash.html
> 
> It documents six different techniques with sample code for most of
> 
> them.
> 
> -- 
> 
> Roedy Green Canadian Mind Products http://mindprod.com
> 
> The first 90% of the code accounts for the first 90% of the development time.
> 
> The remaining 10% of the code accounts for the other 90% of the development 
> 
> time. 
> 
> ~ Tom Cargill  Ninety-ninety Law



It seems to work, but it would be nice if it centered the splash screen instead of doing this:

      this.setLocation( 150, 150 );

Here's some code to center it:
      
      int image_width = image.getWidth(null);
      int image_height = image.getWidth(null);
      
      Dimension screen_dim = Toolkit.getDefaultToolkit().getScreenSize();

      this.setLocation( (screen_dim.width - image_width)/2, (screen_dim.height - image_height)/2 );
      

[toc] | [prev] | [next] | [standalone]


#21557

FromRoedy Green <see_website@mindprod.com.invalid>
Date2013-01-18 15:47 -0800
Message-ID<onnjf8916u4nu0qu9suodql4ktg5kh1uoi@4ax.com>
In reply to#21519
On Fri, 18 Jan 2013 07:39:35 -0800 (PST), bob smith
<bob@coolfone.comze.com> wrote, quoted or indirectly quoted someone
who said :

>
>
>It seems to work, but it would be nice if it centered the splash screen instead of doing this:

I have reposted the code, which your improvement, implemented a
slightly different way.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
The first 90% of the code accounts for the first 90% of the development time.
The remaining 10% of the code accounts for the other 90% of the development 
time. 
~ Tom Cargill  Ninety-ninety Law 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web