我写了一个窗体初始化方法
public class JXCFrame {
private JPanel sysManagePanel;
private JDesktopPane desktopPane;
private JFrame frame;
private JLabel backLabel;
private Map<String, JInternalFrame> ifs = new HashMap<String, JInternalFrame>();
public JXCFrame(){
frame=new JFrame("企业进存销管理系统");
frame.addComponentListener(new BasicToolBarUI.FrameListener())//一直出错
public class JXCFrame {
private JPanel sysManagePanel;
private JDesktopPane desktopPane;
private JFrame frame;
private JLabel backLabel;
private Map<String, JInternalFrame> ifs = new HashMap<String, JInternalFrame>();
public JXCFrame(){
frame=new JFrame("企业进存销管理系统");
frame.addComponentListener(new BasicToolBarUI.FrameListener())//一直出错
返回的不是所需的对象吧。