The Artima Developer Community
Sponsored Link

Java Buzz Forum
Splashing around quickly with Mustang

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Splashing around quickly with Mustang Posted: Oct 3, 2005 11:42 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Splashing around quickly with Mustang
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement

Out of the corner of my eye I saw New Splash-Screen Functionality in Mustang, and how you can get a splash image up even BEFORE the JVM is started.

You can set a splash filename via:

java -splash:filename.gif SplashTest

or set it up in a jar manifest:

Manifest-Version: 1.0 Main-Class: SplashTest SplashScreen-Image: filename.gif

And, of course you will often want to do more than just show an image, you may want to overlay a progress bar:

SplashScreen splash = SplashScreen.getSplashScreen(); Graphics2D g = (Graphics2D)splash.getGraphics(); Dimension size = splash.getDimension(); g.setComposite(AlphaComposite.Clear); g.fillRect(0, 0, size.width, size.height); g.setPaintMode();

I can't wait to see the new splash images show up in Mustang based Java apps of the future :)

Read: Splashing around quickly with Mustang

Topic: Tweaking on the bleeding edge: Ruby vs. Java Previous Topic   Next Topic Topic: Get User information in your portlet

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use