We have a Swing application with socket communication and other threads. We know we need to use SwingUtilities.invokeLater()
to update Swing display from other threads. But how about JOptionPane
? do we need to use SwingUtilities.invokeLater()
from other threads to launch JOptionPane
?
if the answwer is yes, how to use JOptionPane to block the procedure?
if the answer is no, doesn't JOptionPane belong to GUI display?