The Java method java.awt.Window.dispose() is used to dispose or close a window. It releases the resources associated with the window, removes it from the screen, and frees up any system resources that it was holding. Once disposed, the window cannot be shown again without creating a new instance of it. This method is commonly used to clean up and remove windows that are no longer needed in a GUI application.
Java Window.dispose - 30 examples found. These are the top rated real world Java examples of java.awt.Window.dispose extracted from open source projects. You can rate examples to help us improve the quality of examples.