示例#1
0
  public void init() {
    robot = Util.createRobot();

    // Create instructions for the user here, as well as set up
    // the environment -- set the layout manager, add buttons,
    // etc.
    this.setLayout(new BorderLayout());
    Sysout.createDialogWithInstructions(
        new String[] {"This is a manual test. Simple wait until it is done."});
  }
 public void init() {
   try {
     robot = new Robot();
     robot.setAutoDelay(50);
   } catch (AWTException e) {
     throw new RuntimeException("Error: unable to create robot", e);
   }
   // Create instructions for the user here, as well as set up
   // the environment -- set the layout manager, add buttons,
   // etc.
   this.setLayout(new BorderLayout());
   Sysout.createDialogWithInstructions(
       new String[] {"Automatic test. Simply wait until it's done."});
 }