Hi ! I want to know that how I can close one JFrame without exiting the program when two or more JFrame are being used ??????
closing one JFrame without closing the application
Collapse
X
-
Better not; the dispose method gets rid of all the native screen resources andOriginally posted by sukatoaHave a look also on dispose() method.....
the window needs to be reconstructed again if you want to make it visible again.
Better use the setVisible() method if you need to.
kind regards,
JosComment
Comment