Could somebody explain me why Bye is not displayed in window... class Test { Frame f; public Test() { f = new Frame(); f.setSize(400,400); f.setVisible(true); } public void paint(Graphics g) { g.drawString("Bye",10,30); } public static void main(String []a) { new Test(); } }
Suren Babu
Greenhorn
Joined: Oct 23, 2000
Posts: 27
posted
0
Hi Gautam, thanks for your response... I already checked through subclassing, and it works.. but i am wondering why it is not working if you create a Frame instance inside the class... Any help ..