Results 1 to 2 of 2
Thread: what is the error
- 02-09-2009, 10:11 AM #1
Member
- Join Date
- Apr 2008
- Posts
- 16
- Rep Power
- 0
what is the error
class Balloon {
private int diameter;
private int xCoord, yCoord;
public Balloon(int initialDiameter, int initialX, int initialY) {
diameter = initialDiameter;
xCoord = initialX;
yCoord = initialY;
}
public void changeSize(int change) {
diameter = diameter + change;
}
}
the error is exception in thread "main" java.lang.NoSuchMethodError : main
then, i try to c in applet
<html>
<applet code="Balloon.class"></applet>
</html>
the applet notinited.
- 02-09-2009, 10:20 AM #2
Senior Member
- Join Date
- Dec 2008
- Location
- Hong Kong
- Posts
- 473
- Rep Power
- 5
your class should extends Applet or JApplet
and implement 4 following methods if needed
public void init()
public void start()
public void stop()
public void destroy()
Similar Threads
-
Diference Between compiler error Garbage collection and Runtime Error?
By makpandian in forum New To JavaReplies: 3Last Post: 01-23-2009, 08:53 AM -
error 530 error authentication required
By rgale in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 05-12-2008, 04:28 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks