added java example code for scrollTo action.