I have a modal JDialog
that I set non-opaque with a call to the com.sun.awt.AWTUtilities
method, setWindowOpaque(this, false)
.
I encounter problems when I set the modal JDialog
to be non-opaque. For example, when I click on a button a non-opaque dialog, it pop up correctly but after a couple of opening and closing of the dialog, it does open. It is not visible; and, since it is modal, we can't click on the button contained in the parent panel. It's like it is frozen, but that's only because of the modal dialog.
If I remove the call to the method setWindowOpaque(this, false)
, it works without any problem.
Does anyone know what is going on?
I am using Java version "1.6.0_26" on Windows XP.
Thanks.