public void setMainWindow(MainWindow mw) { this.mw = mw; textView.setMainWindow(mw); xmlView.setMainWindow(mw); treeView.setMainWindow(mw); idleThread = new IdleThread(mw); idleThread.start(); }