Here you can find the source of getjFrame(int width, int height)
static JFrame getjFrame(int width, int height)
//package com.java2s; //License from project: Apache License import javax.swing.*; public class Main { private static final String WINDOW_TITLE = "Tablesaw"; static JFrame getjFrame(int width, int height) { JFrame frame = new JFrame(WINDOW_TITLE); frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); frame.setLocationRelativeTo(null); frame.setSize(width, height);//from w ww . j a v a 2 s . c o m return frame; } }