The Source for Java Technology Collaboration

Home » java.net Forums » JDK » Java SE Snapshots: Project Feedback

Thread: SplashScreen: request ability to set location (2nd try)

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Last Post: Oct 31, 2005 4:20 AM by: felipegaucho
cbutterfield

Posts: 2
SplashScreen: request ability to set location (2nd try)
Posted: Oct 30, 2005 11:11 AM
  Click to reply to this thread Reply

The new SplashScreen capability addresses a real need. For my application, one more feature would be very helpful -- the ability to control the splash screen location.

The current behavior is (presumably) fine for desktop apps. In my application, (involving an embedded processor) the end-user sees only the upper left quadrant of the nominal full screen (because only that portion is displayed on their reduced size wrist-worn or heads-up display).

During normal operations, we maintain the application windows in the viewable (upper left) portion of the full screen. It would be nice to be able to move the splash screen to that same area.

best regards
-- Charlie

felipegaucho

Posts: 84
Re: SplashScreen: request ability to set location (2nd try)
Posted: Oct 31, 2005 4:20 AM   in response to: cbutterfield
  Click to reply to this thread Reply

I think you need to adopt the old style splash screen, i.e., implementing a Window class and then controling it aspect.

something like that:
            // Display the window.
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setSize((int) (screenSize.width * 0.7),
                    (int) (screenSize.height * 0.7));
            setLocation((int) ((screenSize.width - getWidth()) / 2),
                    (int) ((screenSize.height - getHeight()) / 2));

the new SplashScreen will save a good extra time...




 XML java.net RSS