mercredi 27 juillet 2016

Java applet viewer blank

I am trying to run this very simple hello world program on eclipse but when I run it, the applet viewer opens and is blank. I have the latest java SE and I believe I have the appropriate acm files. I feel like there is a very simple fix but can't get it. Much thanks!

import acm.graphics.*;
import acm.program.*;
//import java.awt.*;


public class funGraphics extends GraphicsProgram {
    public void main() {

        GLabel label = new GLabel ("Hello World", 100, 75);
        add(label);

        }
}

Aucun commentaire:

Enregistrer un commentaire