hi all
i am stuck why the following paint method does'nt work!
import java.awt.*;
public class lay2 extends Frame{
public void paint(Graphics g){
g.drawString("i am red",10,10);
g.setColor(Color.red);
}
public static void main(
String args[]){
lay2 me =new lay();
me.setSize(5,5,200,200);
me.setVisible(true);
}
}
just an empty frame is visible.please help