Java tutorial
import java.awt.DisplayMode; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; public class Main { public static void main(String[] argv) throws Exception { GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice gs = ge.getDefaultScreenDevice(); DisplayMode[] dmodes = gs.getDisplayModes(); for (int i = 0; i < dmodes.length; i++) { DisplayMode dm = dmodes[i]; if (dm.getBitDepth() == DisplayMode.BIT_DEPTH_MULTI) { System.out.println("DisplayMode.BIT_DEPTH_MULTI"); } } } }