All dialogs are modal. Each showXxxDialog method blocks the caller until the user's interaction is complete.
Nor have I. But I have had option pane dialogues not appear. I have always found them eventually; they seem to have a strange habit of going to the back, so I sometimes had to minimise everything else on screen to find the dialogue window.Rob Camick wrote:I have never had a JOptionPane not display when I asked it to display. . . .
I still have a problem with my understanding of when dialogs are displayed or not displayed due to the dispatcher
Dialogs are displayed when you use setVisible(true), plain and simple.
the JOptionPane is not always dispatched so it can display because presumably the EDT never dispatches it
I cannot figure out how, when I am deep in the bowels of my code, to get dialogs onto the EDT.
if a SwingWorker is really the solution or something else.
No thanks. We have all the government we need. This tiny ad would like you to leave now:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|