+ 2
Disappearing JFrame.
Is it possible to make a JFrame disappear and come back while performing an action during disappearance.
2 Antworten
+ 3
you can set the background color of the jframe to transparent and change it back to opaque upon action performed.
yourJFrame.setBackground(new Color(0, 0, 0, 0));
alpha transparency is the last parameter
+ 4
I’m not sure how to make a JFrame disappear at all, but if you can do that, Store all of the parameters such as size name... and when for making it reappear, just make a new one with those parameters and re-render everything that was on the old one.