我用的是netbean,然后为gui中的菜单项加入了
private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {                                           
        // TODO add your handling code here:
        private FileDialog openfileDlg=new FileDialog(this,"Save File As",FileDialog.SAVE);
    }                                          
为了显示一个文件对话框,我的jbutton就是这么写的,没错,但是菜单项这么写就不对了,应该怎么写?
报错说,无效的表达式
代码在这:
http://oryx.5d6d.com/thread-41-1-1.html