Skip to main content

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

1 reply [Last post]
Joined: 2005-10-30

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

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-13

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...