Frame Button Problems

Started by
1 comment, last by DutchValiance 15 years, 3 months ago
Hi, for instance: i have a button that takes me from frame 1 to frame 2 (this works correctly) however, now i have a button on frame 2 to take me to frame 3. (it doesn't recognize i hit the button) Does any1 have any helpful tips on how to create the listener for the buttons on frame 2? thanks in advance
Advertisement
it could be as simple as not naming the button instance and not calling for it in the code.
i am using a simple

public boolean action (Event e, Object o)
{
if (e.target instanceof Button)
{
if (e.target == cont)
{
hide ();
menu.setVisible (true);
}
}
return true;
}

when i run it i get no errors and the buttons show up so init'ing it is not the problem

This topic is closed to new replies.

Advertisement