[PATCH] 7168064: SwingUtilities.sharedOwnerFrame multiplies window close event (original) (raw)
Jose Luis Martin jlm at joseluismartin.info
Mon May 6 08:28:03 UTC 2013
- Next message: [PATCH] 7168064: SwingUtilities.sharedOwnerFrame multiplies window close event
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
I reported this issue one year ago but seems that it has been removed from the public bug database and is still not fixed so I try now to speak directly with you to see if this really is a bug or not.
The problem that I see is that a child window already disposed is re-disposed when the owner frame is disposed, multiplying the WINDOW_CLOSED events.
I guess that it could be fixed by testing if the child window is displayable before disposing it in the Window dispose action. (May be better in the dispose method itself).
I attach patch over last jdk8 repository and a test case for the issue.
Thanks,
Best Regards.
-- Jose Luis Martin
-------------- next part -------------- A non-text attachment was scrubbed... Name: DialogTest.java Type: text/x-java Size: 2043 bytes Desc: not available URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20130506/11598124/DialogTest.java> -------------- next part -------------- A non-text attachment was scrubbed... Name: jdk8_7168064.diff Type: text/x-patch Size: 880 bytes Desc: not available URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20130506/11598124/jdk8_7168064.diff>
- Next message: [PATCH] 7168064: SwingUtilities.sharedOwnerFrame multiplies window close event
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]