Here you can find the source of createFrame(String str, int height, int width)
public static JFrame createFrame(String str, int height, int width)
//package com.java2s; //License from project: Open Source License import javax.swing.JFrame; public class Main { public static JFrame createFrame(String str, int height, int width) { JFrame frame = new JFrame(); frame.setSize(width, height);//from w ww . ja v a 2 s.co m frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setTitle(str); return frame; } }