Here you can find the source of getDefaultConfiguration()
public static GraphicsConfiguration getDefaultConfiguration()
//package com.java2s; //License from project: Apache License import java.awt.GraphicsConfiguration; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; public class Main { public static GraphicsConfiguration getDefaultConfiguration() { GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice gd = ge.getDefaultScreenDevice(); return gd.getDefaultConfiguration(); }// w w w. ja va 2 s . c o m }