import javax.swing.*; // Superclass defining a basic GUI window public class BasicWindow extends JFrame { public BasicWindow(String title, int width, int height) { setTitle(title); setSize(width, height); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } public void display() { setVisible(true); } }