Ok i have typed via video instruction my first program

, but it didnt work.
Im am currently using JCreator as my editor and this is the detailed info i used.
import java.awt.Canvas;
import java.awt.Graphics;
import java.awt.FontMetrics;
import java.awt.Rectangle;
class TextThree extends Canvas {
TextThree(){
setSize(300,100);
}
public void paint(Graphics g) {
Rectangle rect = getBounds();
FontMetrics fm = g.getFontMetrics();
String str;
int strwidth;
int x;
int y;
str = "Top Left Corner";
y = fm.getAscent();
x = 0;
g.drawString(str,x,y);
str = "Top Right Corner";
strwidth = fm.stringWidth(str);
y = fm.getAscent();
x = rect.width - strwidth;
g.drawString(str,x,y);
str = "Bottom Left Corner";
y = rect.height - fm.getDescent();
x = 0;
g.drawString(str,x,y);
str = "Bottom Right Corner";
strwidth = fm.stringWidth(str);
y = rect.height - fm.getDescent();
x = rect.width - strwidth;
g.drawString(str,x,y);
}
}
//But this is the error i get after compiling it and then running the file
--------------------Configuration: test1 - JDK version 1.6.0_02 <Default> - <Default>--------------------
java.lang.NoSuchMethodError: main
Exception in thread "main"
Process completed.
Could you help me with this area thx
ZAXTHEGREAT