public PlotWindow(String title) { super(title); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); p = new Plot(); p.init(); add(p); p.setSize(800, 480); setSize(800, 480); setLocation(100 + 10 * I, 100 + 10 * I); I++; setVisible(true); }