overloaded setText method to use integers