/** * Creates a new frame. * * @param title the frame title */ public JTSFrame(String title) { super(title); initComponents(); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); }
private void initComponents() { canvas = new Canvas(); getContentPane().add(canvas); }
private void initComponents() { canvas = new Canvas(); getContentPane().add(canvas); }
/** * Creates a new frame. * * @param title the frame title */ public JTSFrame(String title) { super(title); initComponents(); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); }