JTextField - which I'm guessing these jtfMessage things are - are designed to allow the user to enter and edit text. If you intend to use them for int values then the (conceptually) simplest thing...