I\'m trying to set an int value using jTextField and the setText method. But of course setText wants a String. How do I get round this? I\'ll give you a snippet of the code:
String#valueOf convert your int to String.
String#valueOf
int
String
String.valueOf(e.getAge()); will return the string representation of the int argument.
String.valueOf(e.getAge());
string
seatsTF.setText(String.valueOf(e.Age())); ...