I need some help
Why is this not working? It compiles and then an applet window appears which says applet running, but nothing happens
import java.applet.*;
import java.awt.*;
public class MyThread extends Applet implements Runnable
{
public void run ()
{
Graphics g = getGraphics ();
g.setColor (Color.black);
g.fillOval (0, 0, 50, 50);
}
}
class RunMe extends Applet
{
public void paint (Graphics g)
{
MyThread runner = new MyThread ();
Thread runnerThread = new Thread (runner);
runnerThread.start ();
} // main method
} // Run class
If you want breakfast in bed....sleep in the kitchen
Some people get lost in thought because it's such unfamiliar territory
I may not be better than anybody else, but at least I am different!
When God handed out good looks, I thought He said school books
So I ordered none
Something new for me
rocks
import java.applet.*;
import java.awt.*;
public class MyThread extends Applet implements Runnable
{
public void run ()
{
Graphics g = getGraphics ();
g.setColor (Color.black);
g.fillOval (0, 0, 50, 50);
}
}
class RunMe extends Applet
{
public void paint (Graphics g)
{
MyThread runner = new MyThread ();
Thread runnerThread = new Thread (runner);
runnerThread.start ();
} // main method
} // Run class
If you want breakfast in bed....sleep in the kitchen

Some people get lost in thought because it's such unfamiliar territory
I may not be better than anybody else, but at least I am different!
When God handed out good looks, I thought He said school books
So I ordered none
Something new for me
