Java GraphicsConfiguration .getBufferCapabilities ()
Syntax
GraphicsConfiguration.getBufferCapabilities() has the following syntax.
public BufferCapabilities getBufferCapabilities()
Example
In the following code shows how to use GraphicsConfiguration.getBufferCapabilities() method.
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
/* w w w .j av a 2 s . com*/
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.getBufferCapabilities());
}
}
Home »
Java Tutorial »
java.awt »
Java Tutorial »
java.awt »