예제 #1
0
  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();
  }
예제 #2
0
 public void actionPerformed(java.awt.event.ActionEvent e) {
   if (e.getActionCommand() == "render") {
     display.render();
   }
 }