KnowledgeFlowApp kna = KnowledgeFlowApp.getSingleton();
final KnowledgeFlowApp kna = KnowledgeFlowApp.getSingleton();
        public void startUpComplete() {          if (m_KnowledgeFlowFrame == null) {            KnowledgeFlowApp kna = KnowledgeFlowApp.getSingleton();            m_KnowledgeFlowBut.setEnabled(false);            m_KnowledgeFlowFrame = new JFrame("Weka KnowledgeFlow Environment");            m_KnowledgeFlowFrame.getContentPane().setLayout(new BorderLayout());            m_KnowledgeFlowFrame.getContentPane()              .add(kna, BorderLayout.CENTER);            m_KnowledgeFlowFrame.addWindowListener(new WindowAdapter() {                public void windowClosing(WindowEvent w) {                  m_KnowledgeFlowFrame.dispose();                  m_KnowledgeFlowFrame = null;                  weka.gui.beans.BeanConnection.reset();                  weka.gui.beans.BeanInstance.reset(null);                  m_KnowledgeFlowBut.setEnabled(true);                  checkExit();                }              });            m_KnowledgeFlowFrame.pack();            m_KnowledgeFlowFrame.setSize(900, 600);            m_KnowledgeFlowFrame.setVisible(true);          }        }