how to create a new minimize/restore/close button on a undecorated frame
Jhedzkie Skies
Ranch Hand
Joined: Oct 28, 2009
Posts: 118
posted
0
hi there.
i just want to ask. how to do this.
i have a frame. (undecorated)
i made it undecorated because it will act as a splash screen.
but now, i want to make its own minimize/restore/close button on it.
If you are using 1.6, java has a built in SplashScreen class. For previous versions you can use a JWindow and override the paintComponent to draw a background image on it.
If you are using 1.6, java has a built in SplashScreen class. For previous versions you can use a JWindow and override the paintComponent to draw a background image on it.
Do I understand you correctly that you wish to add this functionality on the splash screen?
If yes, then that is extremely bad usability.
Splash screens are meant to keep the user "occupied" till the application loads. They might also be used for advertisement or providing the user a feedback on the initializing activity if required. Splash screens typically only last (should) a few seconds.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: how to create a new minimize/restore/close button on a undecorated frame