When setVisible(true) and setVisible(false) is used for my JDialogs, they often have a white bakground flashin by in the area intended for the JDialog.
For instance, i setVisible(false), i see one white rectangle (same loaction and size as my JDialog) for fractions of a second before the JDialog is gone.
Swing is double buffered, but the showing of JDialogs on top of other UI seems to be not?
I could solve this if this white color could be set because I could then set the color to (0, 0, 0, 0) with 0 alpha no one would see it. BUT, it seems I cannot change this color. Even if I this.setBackground(Color.red) on my JDialog it will be white!
Is there a way to set this white color to something else?