public void init() {

    display = new Cue_Drawing();
    display.setBounds(0, 0, 640, 480);
    display.setBackground(Color.white);
    display.setDoubleBuffered(true);
    display.setIgnoreRepaint(true);
    // Controls=new JPanel();
    // Controls.setBounds(0,280,640,200);

    addControls();

    getContentPane().add(display);
    // getContentPane().add(Controls);

    validate();
  }
 public void actionPerformed(java.awt.event.ActionEvent e) {
   if (e.getActionCommand() == "render") {
     display.render();
   }
 }