I created my own JOptionPane using JDialog, but I cannot reproduce the behavior of a typical JOptionPane that prevents the user from clicking anywhere except the JOptionPane window.
What JOptionPane property do I need to replicate with JDialog so that I can simulate this behavior? (I know that JOptionPanes are just specialized JDialogs, as you can see if you look at the source code for the JOptionPane class).
source share