[TxMt] Asking about java applet
richdang
danghuyhoan at gmail.com
Sun Mar 27 05:32:14 UTC 2011
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 ?
--
View this message in context: http://old.nabble.com/Asking-about-java-applet-tp31247793p31247793.html
Sent from the textmate users mailing list archive at Nabble.com.
More information about the textmate
mailing list