// Mac seems to lock up when showing a JS confirm from Java.
//return JOptionPane.showConfirmDialog(this, s, "doh.robot", JOptionPane.OK_CANCEL_OPTION)==JOptionPane.OK_OPTION);
JOptionPane pane = new JOptionPane(s, JOptionPane.DEFAULT_OPTION, JOptionPane.OK_CANCEL_OPTION);
JDialog dialog = pane.createDialog(this, "doh.robot");
dialog.setLocationRelativeTo(this);
dialog.show();
return ((Integer)pane.getValue()).intValue()==JOptionPane.OK_OPTION;
}
// mouse discovery code
public void setDocumentBounds(final double sec, final int x, final int y, final int w, final int h) throws Exception{