• Post Reply Bookmark Topic Watch Topic
  • New Topic

JInternal Frames  RSS feed

 
Dave Donohoe
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have a Desktop with a number of JInternal Frames in it.
When the user closes a JInternalFrame, I have a Popup asking if the user is sure they want to continue.
If the user clicks YES, the window is closed, & if the user clicks NO the window should not be closed.
however, to do this I added an InternalFrameListener & used the method 'internalFrameClosing'. the problem is that for this method to be triggered, the app is in the process of actually closing the internal window. How do I stop the window being closed when the user clicks NO ?
Is there a different Listener I could use ?
Thanks,
Dave
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!