Java GraphicsConfiguration .isTranslucencyCapable ()
Syntax
GraphicsConfiguration.isTranslucencyCapable() has the following syntax.
public boolean isTranslucencyCapable()
Example
In the following code shows how to use GraphicsConfiguration.isTranslucencyCapable() method.
//w ww . jav a 2s. c o m
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
public class Main {
public static void main(String[] argv) {
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice gs = ge.getDefaultScreenDevice();
GraphicsConfiguration gc = gs.getDefaultConfiguration();
System.out.println(gc.isTranslucencyCapable());
}
}
Home »
Java Tutorial »
java.awt »
Java Tutorial »
java.awt »