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); }
private MutableTreeNode populatePlot(Plot p) throws SQLException { DefaultMutableTreeNode tree = new DefaultMutableTreeNode(p); // tree.add(populateAttributes(p)); Statement stmt = db.statement(); for (Tree t : p.loadTrees(stmt)) { tree.add(populateTree(t)); } stmt.close(); return tree; }
public void addPlot(String name, int[] data) { p.addPlot(name, data); }