The point of a SSCCE is to use the default functionality of Java to see if it works. Then if it works you see what is different between the "default" and your "custom" behavour. There you know where to look for a difference to see what is wrong. If it doesn't work then you have something simple to post and we can help if you are doing something wrong.
I did a test with a simple JDialog and got the same results: nothing printed with println(). Keep in mind we are talking about closing the window by clicking on the red button upper right hand corner of JDialog. My program needs to know this so it can choose which JTree to keep, because I am using a JSplitpane with the possibility of removal and replacement by JS crollPane for JTree (s). Thanks. Any help appreciated.
Joined: Jun 13, 2009
I did a test with a simple JDialog and got the same results
So where is your test code (the SSCCE)? How many times do you have to be asked?
Where are the import statements? What is the point of the JOptionPane? How is it related to the problem? There is no main() method. There is no code to create and show your dialog. Yes, it is simple to add but but you have already done this because you created a test so why should we waste time trying to duplicated something that has already been done?. You want some help, so don't make use do extra work.
I'm finished with this posting. Good luck. Maybe next time you will post a proper SSCCE.