|
Replies:
1
-
Last Post:
Oct 31, 2005 4:20 AM
by: felipegaucho
|
|
|
|
|
|
|
SplashScreen: request ability to set location (2nd try)
Posted:
Oct 30, 2005 11:11 AM
|
|
|
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
|
|
|
|
|
|
|
Re: SplashScreen: request ability to set location (2nd try)
Posted:
Oct 31, 2005 4:20 AM
in response to: cbutterfield
|
|
|
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...
|
|
|
|
|