• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to create a new minimize/restore/close button on a undecorated frame

 
Aron Jhed Amiscosa
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

any idea?

thanks.
 
Maneesh Godbole
Saloon Keeper
Posts: 11072
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make it decorated?

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.
 
Aron Jhed Amiscosa
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:Make it decorated?

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.


im on 1.6.

thanks. i will try to work this out.
 
Aron Jhed Amiscosa
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i mean, how to do it like this...



i did tried to make it but this shows up.



any idea to make it blend with the image?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> any idea to make it blend with the image?

transparency?
 
Rob Spoor
Sheriff
Pie
Posts: 20559
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Search on my recent posts in this forum; I explained to someone else how to minimize / restore just a week or so ago. Maximizing is similar.
 
Maneesh Godbole
Saloon Keeper
Posts: 11072
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic