sure , drawString is a static method of Graphics class. Which outputs a
string in a specified coordiante position of your container. simple example would be this i am using an
applet to show this
<code>
import java.applet.*;
import java.awt.*;
public class DrawString extends Applet {
public void paint(Graphics g) {
g.drawString("Your String",50,50); // Coordinates tells where the string will appear.
}
}
</code>