I' am trying to run a java applet via textmate. But when I run it by cmd + R the applet viewer appear and then nothing's happen, after that it crashes.
This is my code :
import java.awt.*; import java.applet.*;
public class SimpleApplet extends Applet { private int height, width; public void init() { height = 50; width = 300; } public void paint(Graphics g) { g.drawString("Hello world", 20, 20); } }
So there are somethings wrong in my code or I need to config somethings ?