Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

The applet Game does not have a public constructor Game()

3 views
Skip to first unread message

Henry Eck

unread,
Apr 8, 2007, 5:12:04 PM4/8/07
to
Hello,

I am having a problem running an applet in JBuilder foundation 2005, and get
the error message in the subject line. In fact there is a public
constructor called Game().

This problem has been reported by others in Sun's discussion groups, but no
solution there.

Does anyone have a suggestion ? Thanks.


public class Game extends JApplet {

// the dots
Dot noDot;
Dot redDot;
Dot greenDot;
Dot blueDot;
Dot yellowDot;
Dot aquaDot;
Dot purpleDot;
Dot[] theDots;

boolean isStandalone = false;
BorderLayout borderLayout1 = new BorderLayout();
String var0;
int width;
int height;

Container content;

State theState;
Grid theGrid;


// Construct the applet
public Game() {
width = 9;
height = 9;
makeTheDots();
theState = new State(width, height, theDots);
theGrid = new Grid(width, height, 28, theState);
theState.getNextToDrop();
theState.dropThem();

}

...


Henry Eck

unread,
Apr 8, 2007, 7:05:14 PM4/8/07
to
It seems that this occurs when running an applet in JBuilder's applet
viewer, if there is a null pointer or index out-of-bounds error.
Unfortunately it terminates the thread so one gets no debug info.

"Henry Eck" <h_...@yahoo.com> wrote in message
news:4619...@newsgroups.borland.com...

0 new messages