import javax.swing.*;

/**
 * Created by rcsad on 1/10/2017.
 */
public class Window extends JFrame {

    public Window(String title, int width, int height){
        setTitle(title);
        setSize(width, height);
    }

}

Add Window class