+ 2

Disappearing JFrame.

Is it possible to make a JFrame disappear and come back while performing an action during disappearance.

18th Jan 2018, 8:01 PM
Muhammad Awais Ayaz Khan
Muhammad Awais Ayaz Khan - avatar
2 ответов
+ 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
19th Jan 2018, 4:24 AM
seamiki
seamiki - avatar
+ 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.
18th Jan 2018, 9:27 PM
Jacob Pembleton
Jacob Pembleton - avatar