"org.netbeans.jemmy.operators.ScrollbarOperator",
"org.netbeans.jemmy.operators.TextAreaOperator",
"org.netbeans.jemmy.operators.TextComponentOperator",
"org.netbeans.jemmy.operators.TextFieldOperator"
};
LightDriver keyR = new KeyRobotDriver(robotAutoDelay, awtOperators);
LightDriver mouseR = new MouseRobotDriver(robotAutoDelay, awtOperators);
DriverManager.removeDriver(DriverManager.KEY_DRIVER_ID,
keyR.getSupported());
DriverManager.removeDriver(DriverManager.MOUSE_DRIVER_ID,
mouseR.getSupported());
DriverManager.setDriver(DriverManager.KEY_DRIVER_ID, keyR);
DriverManager.setDriver(DriverManager.MOUSE_DRIVER_ID, mouseR);
} catch(JemmyException e) {
if(!(e.getInnerException() instanceof ClassNotFoundException)) {
throw(e);
}
}
} else {
LightDriver keyR = new KeyRobotDriver(robotAutoDelay);
LightDriver mouseR = new MouseRobotDriver(robotAutoDelay, smooth);
DriverManager.removeDriver(DriverManager.KEY_DRIVER_ID,
keyR.getSupported());
DriverManager.removeDriver(DriverManager.MOUSE_DRIVER_ID,
mouseR.getSupported());
DriverManager.setDriver(DriverManager.KEY_DRIVER_ID, keyR);
DriverManager.setDriver(DriverManager.MOUSE_DRIVER_ID, mouseR);
}