Here you can find the source of getDefaultGraphicsConfiguration()
protected static java.awt.GraphicsConfiguration getDefaultGraphicsConfiguration()
//package com.java2s; public class Main { protected static java.awt.GraphicsConfiguration getDefaultGraphicsConfiguration() { java.awt.GraphicsEnvironment ge = java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(); java.awt.GraphicsDevice gd = ge.getDefaultScreenDevice(); return gd.getDefaultConfiguration(); }//from w w w.j a v a 2 s . c o m }