&& w.getBackground().getAlpha() == 0;
if (transparent == isTransparent)
return;
whenDisplayable(w, new Runnable() {
public void run() {
JRootPane root = ((RootPaneContainer)w).getRootPane();
JLayeredPane lp = root.getLayeredPane();
Container content = root.getContentPane();
if (content instanceof X11TransparentContentPane) {
((X11TransparentContentPane)content).setTransparent(transparent);
}
else if (transparent) {
X11TransparentContentPane x11content =
new X11TransparentContentPane(content);
root.setContentPane(x11content);
lp.add(new RepaintTrigger(x11content),
JLayeredPane.DRAG_LAYER);
}
setLayersTransparent(w, transparent);
setForceHeavyweightPopups(w, transparent);