X-Received: by 10.66.84.98 with SMTP id x2mr1301779pay.10.1358523576860; Fri, 18 Jan 2013 07:39:36 -0800 (PST) X-Received: by 10.50.89.162 with SMTP id bp2mr709284igb.15.1358523576798; Fri, 18 Jan 2013 07:39:36 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!newsfeed.news.ucla.edu!usenet.stanford.edu!f6no8658784pbd.1!news-out.google.com!6ni3747pbd.1!nntp.google.com!f6no8658778pbd.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Fri, 18 Jan 2013 07:39:35 -0800 (PST) In-Reply-To: <2m8hf8dn5va1afqngil3js5a8f08fe5c0f@4ax.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=184.76.139.203; posting-account=v1lx5wkAAAALWYfGBkwkMb2guPF9cW2u NNTP-Posting-Host: 184.76.139.203 References: <2e28b877-c7a5-43b5-91d5-55bf0400d79e@googlegroups.com> <2m8hf8dn5va1afqngil3js5a8f08fe5c0f@4ax.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <77b40be7-e4cf-470e-809f-2b00ba142469@googlegroups.com> Subject: Re: splash screen From: bob smith Injection-Date: Fri, 18 Jan 2013 15:39:36 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.java.programmer:21519 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 > > 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 );