Try this:
int num = 42; g.drawString("" + num, 100, 200);
Alternatively:
g.drawString(Integer.toString(num), 100, 200);
what do you mean int value in the drawing panel? The drawing panel is a class that you call in order to use graphics. The only way to print out numbers are to you use g.drawString because that is from the panel class.