Here you can find the source of getSecondWindowConfiguration()
private static GraphicsConfiguration getSecondWindowConfiguration()
//package com.java2s; //License from project: Open Source License import java.awt.GraphicsConfiguration; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; public class Main { private static GraphicsConfiguration getSecondWindowConfiguration() { GraphicsDevice[] screens = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices(); if (screens.length < 2) { return null; }/*ww w . ja v a2s . c om*/ return screens[1].getDefaultConfiguration(); } }