I asked a question of why this other code didnt work.
I was givin this code here
This writes directly on the applet?Code:public void paint(Graphics g) { g.drawString("string",xloc,yloc); }
So I tried to use it like this
It wont work. How do I call paint, and what is 'Graphics g'?Code:/**Start the applet*/ public void start() { paint(appletl); } public void paint(Graphics g) { g.drawString("Hi there",11,11); }


Reply With Quote