Results 1 to 2 of 2
  1. #1
    pro85 is offline Member
    Join Date
    Apr 2008
    Posts
    16
    Rep Power
    0

    Default 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.

  2. #2
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

    Default

    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

  1. Replies: 3
    Last Post: 01-23-2009, 09:53 AM
  2. error 530 error authentication required
    By rgale in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 05-12-2008, 05:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •