List of usage examples for java.awt GraphicsDevice getAvailableAcceleratedMemory
public int getAvailableAcceleratedMemory()
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*/ }