So I'm trying to put a GLabel on the canvas, but the problem is it won't show up. I've been watching the Programming Methodology courses from Stanford and there they extend the acm packages, which I'm extending as well. My code looks exactly like what the lecturer is using, but my GLabel isn't working. Here's my code:
import acm.program.*;
import acm.graphics.*;
public class prog extends GraphicsProgram{
public void main () {
GLabel label = new GLabel ("Hello, world", 200, 200);
add (label)
}
}
Additional info : I'm using a text editor called TextWrangler on Mac OS X and compiling using the bash shell on a command line called Terminal.