Here you can find the source of getDefaultConfig()
private static GraphicsConfiguration getDefaultConfig()
//package com.java2s; /*=========================================================================== COPYRIGHT 2013 Vin?cius G. Mendon?a ALL RIGHTS RESERVED. /*from www.j av a 2 s. c o m*/ This software cannot be copied, stored, distributed without Vin?cius G. Mendon?a prior authorization. This file was made available on https://github.com/ViniGodoy and it is free to be redistributed or used under Creative Commons license 2.5 br: http://creativecommons.org/licenses/by-sa/2.5/br/ ============================================================================*/ import java.awt.*; public class Main { private static GraphicsConfiguration getDefaultConfig() { return GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration(); } }