I have created a DialogUtil which shows numbers of JOptionPan in different situation. sometimes in my action class call to this method with null parameters as below.
I don't know what WebOptionPane
or WebPanel
are, but if they're based on JOptionPane
, then the issue is that you're passing null
for that first argument to the showXXX()
method. If you want the JOptionPane
to be modal -- which forces it to be in front of a specified window -- then you need to specify a window (i.e., a JFrame
-- for that first argument.