pStartButton.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
pGame.startGame();
pFrame.requestFocus();
}
});
pGame.addScoreListener(new ScoreListener()
{
public void scoreChange(ScoreEvent e)
{
pScoreLabel.setText("Score: "+ e.getScore());
}
});
however, i get an error message saying that ActionListener cannot be resolved to a type. How can that be? I have the appropriate packages imported already, so why?
btw, this is a snippet of the full code. if the full code is needed, i will post that as well. I don't understand why ActionListener is a problem!! Assistance is greatly appreciated

New Topic/Question
Reply




MultiQuote





|