FileDocCategorySizeDatePackage
ShowDevices.javaAPI DocExample374Mon Apr 05 11:23:20 BST 1999None

ShowDevices

public class ShowDevices extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    GraphicsDevice[] screenDevices = ge.getScreenDevices();
    for (int i = 0; i < screenDevices.length; i++)
      System.out.println(screenDevices[i].getIDstring());
    System.exit(0);