Is there a reason you can't catch the AWTException in the constructor and throw it wrapped inside a RuntimeException?
public Robo() throws AWTException{
try {
r = new Robot();
} catch(AWTException e) {
throw new RuntimeException("Failed to create java.awt.Robot for Robo instance", e);
}
}
Suppressingfire
2009-10-29 02:05:54