private boolean typeSpecialChar(char c){
switch (c) {
case '\t':
    controller.keyPress(KeyEvent.VK_TAB);
  controller.keyRelease(KeyEvent.VK_TAB);
return true;
case '\n':
controller.keyPress(KeyEvent.VK_ENTER);
controller.keyRelease(KeyEvent.VK_ENTER);
return true;
default :
return false;
}
}

private boolean typeSpecialChar ( char c ) { switch ( c ) { case '\t' : controller . keyPress ( KeyEvent . VK_TAB ) ; controller . keyRelease ( KeyEvent . VK_TAB ) ; return true ; case '\n' : controller . keyPress ( KeyEvent . VK_ENTER ) ; controller . keyRelease ( KeyEvent . VK_ENTER ) ; return true ; default : return false ; } }
simulate keyboard to type out a special character . there are only several special characters supported .
