求助!怎么样在new ActionListener()中导入外部的class文件?
先上代码:menutool.addActionListener(new ActionListener() {
//为按钮添加点击动作,点开之后加入新的窗口
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
}
});
我想在public void actionPerformed(ActionEvent e) 里面加入一个计算机界面,现在计算器界面已经写好在另外一个class文件里面了,请问我该怎样把计算机的class文件导入到这里面来?