Java examples for 2D Graphics:Graphics
gets all the available graphics devices that can be drawn to IE screens or monitors
//package com.java2s; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; public class Main { /**//from ww w .j a v a2s . c o m * gets all the available graphics devices that can be drawn to IE screens or monitors * * @return */ public static GraphicsDevice[] getSupportedScreens() { GraphicsEnvironment ge = GraphicsEnvironment .getLocalGraphicsEnvironment(); GraphicsDevice[] devices = ge.getScreenDevices(); for (int i = 0; i < devices.length; i++) { System.out.println(i + ". " + devices[i]); } return devices; } }