Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Detect Window Disposal  RSS feed

 
Isaac Hewitt
Ranch Hand
Posts: 191
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to detect the disposal of a window that has been instantiated from a main class whose window is the one being exited, in other words program exit.
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your question lacks vital details. If this is AWT/Swing, you could use WindowListener#windowClosed/windowClosing.

If that's not what you were looking for, you need to post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates what you're after.

Moving this thread to the part of the Ranch where we discuss GUI issues.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!