Sounds like you want to draw a string on an image, correct? You'd use Java2D to do that.
Create a new BufferedImage, get the Graphics2D from it, draw the image and a string. Sorry I don't have time to provide code samples, but the Java2D tutorial is pretty good and worth looking at: