准备做一个小的管理系统,主窗口有菜单和工具栏,现在需要点击一个菜单,就在主窗体中显示对应功能的panel,原先的panel移除。
我使用如下的代码不知道为什么显示不出来。
CustPanel custPanel = new CustPanel();
this.setContentPanel(custPanel).