View Single Post
  #1 (permalink)  
Old 07-23-2007, 06:26 PM
valery valery is offline
Member
 
Join Date: Jul 2007
Posts: 32
valery is on a distinguished road
How to close a JFrame
When I offer a prompt to close a window (JFrame), and the user chooses No or Cancel, I am using the following:

Code:
setVisible(false); dispose();


but the window disappears, and a blank square overlays the main window and buttons.
I don't want that
Do you have any ideas to solve this?
Reply With Quote
Sponsored Links