public class WindowTranslucencyHelper
extends java.lang.Object
| 构造器和说明 |
|---|
WindowTranslucencyHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
isTranslucencySupported()
Checks if is translucency supported.
|
static void |
setOpacity(java.awt.Window w,
float opacity)
Sets the opacity.
|
static void |
setWindowOpaque(java.awt.Window w,
boolean opaque)
Sets the window opaque.
|
public static boolean isTranslucencySupported()
GraphicsDevice.isWindowTranslucencySupported(TRANSLUCENT) at JDK1.7 or later,
com.sun.awt.AWTUtilities.isTranslucencySupported(AWTUtilities.Translucency.TRANSLUCENT) at JDK1.6_u10 or laterpublic static void setOpacity(java.awt.Window w,
float opacity)
w - the wopacity - the opacitypublic static void setWindowOpaque(java.awt.Window w,
boolean opaque)
w - the wopaque - the opaque