Example usage for java.awt GraphicsDevice getAvailableAcceleratedMemory

List of usage examples for java.awt GraphicsDevice getAvailableAcceleratedMemory

Introduction

In this page you can find the example usage for java.awt GraphicsDevice getAvailableAcceleratedMemory.

Prototype

public int getAvailableAcceleratedMemory() 

Source Link

Document

This method returns the number of bytes available in accelerated memory on this device.

Usage

From source file:MainClass.java

public static void main(String[] a) throws Exception {
    GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    GraphicsDevice[] screenDevices = ge.getScreenDevices();
    for (int i = 0; i < screenDevices.length; i++) {
        GraphicsDevice s = screenDevices[i];
        System.out.println(s.getAvailableAcceleratedMemory());
    }/*w w  w .  java 2  s  .  c  o  m*/
}