Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Diference between close() and dispose()

952782Jul 30 2012 — edited Aug 2 2012
in Java Swings we had two methods to close a JFrame, i.e frame.dispose() and frame.hide() / or frame.setVisible(false).

But in FX, we have a single methos to close the stage which is : Stage.close() and it is equivalent to hide().

So does that mean, on calling stage.close(), the memory and the resources allocated to the stage remain intact and the stage is only vanished from the screen?

Does that further imply, FX doesnt have any method to comple 'dispose' of the stage as in swings?

please reply

Edited by: 949779 on Jul 30, 2012 6:17 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2012
Added on Jul 30 2012
3 comments
7,606 views