帮我看看这是什么回事?
ruixj 2004-03-10 10:51:37 button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
int state = chooser.showOpenDialog(null);
File file = chooser.getSelectedFile();
String s = "CANCELED";
if (file != null && state == JFileChooser.APPROVE_OPTION) {
s = "File Selected:" + file.getPath();
}
JOptionPane.showMessageDialog(null, s);
}
});
在jbuilder9中编译时出现以下问题:
"FileChooser.java": cannot resolve symbol: constructor ActionListener ()in class fund.ActionListener at line 108, column 26
请问应该如何解决?