Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

I need some help

This is where you can discuss your homework, family, just about anything, make strange sounds and otherwise discuss things which are really not related to the Lancer-series. Yes that means you can discuss other games.

Post Sun Apr 18, 2004 3:07 am

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

Post Sun Apr 18, 2004 4:49 am

What compiler are you using?
Most compilers will give you an option to run the code line by line, so you can see exactly where it's falling over. I wish I could offer more advise but it's been years since I've done anything with java and even then I was pretty crap at it.

Post Sun Apr 18, 2004 5:12 am

I use Ready to Program, dunno which compiler that uses, it's a thing we got at school

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

Return to Off Topic