I have a small dialog that is independent from the rest of the whole project. There are several threads that can call this dialog.
The problem is a modal JDialog that shows the progress of the current task. My dialog will be opened behind the progress dialog. There is no possibility to get this dialog.
Is it possible to get the current active dialog so that I can use them as the parent of my new dialog? "There are several threads that can call this dialog." - Surely only the Event Dispatch Thread should be invoking this dialog (assuming you're using Swing)?
以上就是Get the current active modal dialog in java的详细内容,更多请关注web前端其它相关文章!