Here you can find the source of getTheJFrame(String title, int width, int height, int x, int y)
public static JFrame getTheJFrame(String title, int width, int height, int x, int y)
//package com.java2s; //License from project: LGPL import javax.swing.JFrame; public class Main { public static JFrame getTheJFrame(String title, int width, int height, int x, int y) { JFrame jframe = new JFrame(title); jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); jframe.setSize(width, height);//from w ww. jav a 2 s . c o m jframe.setLocation(x, y); jframe.pack(); jframe.setVisible(true); return jframe; } }