fix java scroll example