Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JInternal Frames

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 ?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic