Creating an image file, with a desired text!!

hi friends,I have a small problem. I need to create a small image which will contain the text given by the user. I have to send the same image to the clients's browser.Pl. give me an idea how to do?Thanks in advance.
[259 byte] By [bhatshishya] at [2007-9-26 1:23:34]
# 1

I have an application that provides a JFrame. User's can import graphics and type text. Then the contents of the JFrame can be exported. It is like a screen shot, but other windows don't obscure the exported image.

Thanks to other Forum participants who helped me understand these techniques.

System.out.println("Export page..");

Container cp = getContentPane();

BufferedImage buf = new BufferedImage(cp.getWidth(),cp.getHeight(), BufferedImage.TYPE_INT_RGB);

Graphics2D bufg = (Graphics2D) buf.getGraphics();

cp.paintAll(bufg);

try {

ImageIO.write(buf, "png", new File("frame_export.png")); }

catch(Throwable t) { t.printStackTrace(); }

System.out.println("Export Done");

kallisto at 2007-6-29 1:02:24 > top of Java-index,Security,Cryptography...
# 2
why not send the text to the client and have the client create the image?
glicious at 2007-6-29 1:02:24 > top of Java-index,Security,Cryptography...