java基础(连接数据库项目),unknow source点按钮界面没有反应

登录成功,页面加载完成,点击菜单栏的按钮没有反应(页面应该有变化),所有的按钮都不行。
报错信息都是unknow source,报错行在下图,报错信息在下图。为什么点退出都没反应,按理来说不需要用到这一行(退出是jmenuitem1)。
百度查询(unknow source)是说javac编译没有指定调试信息(我指定了个主类,别的不会指定了。。)。环境是jdk1.8(下图),有人说可能swing太老了?
if(actionEvent.getSource()==jMenuItem2)

    {
        //创建“修改职工”面板对象
        ModifyEmployee ModifyEmp=new ModifyEmployee();
        this.remove(this.getContentPane());
        //加载“修改职工”面板的对象到主框架
        this.setContentPane(ModifyEmp);
        this.setVisible(true);
    }

img

img

下面那个方法(有error)显示 The method setContentPane(Container) in the type JFrame is not applicable for the arguments (ModifyEmployee)。

img

img

img

img

img

用的Swing的GUI还是什么?如果是用JDBC连接数据库或许可以参考一下这篇文章https://blog.csdn.net/qq_62731133/article/details/124673825

setContentPane()长啥样