Example usage for java.awt GraphicsConfiguration isTranslucencyCapable

List of usage examples for java.awt GraphicsConfiguration isTranslucencyCapable

Introduction

In this page you can find the example usage for java.awt GraphicsConfiguration isTranslucencyCapable.

Prototype

public boolean isTranslucencyCapable() 

Source Link

Document

Returns whether this GraphicsConfiguration supports the GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT PERPIXEL_TRANSLUCENT kind of translucency.

Usage

From source file:Main.java

public static void main(String[] argv) {
    GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    GraphicsDevice gs = ge.getDefaultScreenDevice();
    GraphicsConfiguration gc = gs.getDefaultConfiguration();
    System.out.println(gc.isTranslucencyCapable());
}