Here you can find the source of setGeneralParameters(final JFrame window)
public static void setGeneralParameters(final JFrame window)
//package com.java2s; //License from project: Open Source License import javax.swing.*; public class Main { public static void setGeneralParameters(final JFrame window) { window.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); window.validate();/*from w w w . ja v a2s. c o m*/ window.pack(); window.setVisible(true); } }