import java.lang.Object;
import java.awt.event.*;
import java.lang.*;
public class LevelSelectionMouseListner extends MouseAdapter
{
public void mouseClicked(MouseEvent event)
{
int levelNum = -1;
boolean standard = true;
if(event.getSource() == levelMenu.getProvidedList())
{
levelMenu.clearCustomList();
levelNum = levelMenu.getProvidedLevelNum();
}
else if (event.getSource()==levelMenu.getCustomList())
{
levelMenu.clearProvidedList();
levelNum=levelMenu.getCustomLevelNum();
standard = false;
}
if(event.getClickCount()==2)
{
if (levelNum != -1)
{
changeContent(PLAY_PANEL, "startPlay");
playMgr.initLevelForPlay(standard, levelNum);
playPanel.startTimer();
}
}
}
}
这段代码给了我多个错误,而这个类是我用来创建一个用 Java 发射激光的宇宙飞船的 3 个类之一。有什么问题,为什么不能编译?我真的迷路了。谢谢!