Welcome, geork, to Java Forums!
First, you must declare the integer, num, and then you can use it like this:
int num = 10;
JLabel label = new JLabel((new Integer(num)).toString());
I do this, because this construction is expecting an argument of type String. To convert the number into a String, you can create a
new Integer object and then use its
toString() method.
Hope this helped.
