setCursor(new Cursor(Cursor.WAIT_CURSOR)); new Thread() { public void run() { updateDesignation(); BugSet bs=BugLoader.redoAnalysisKeepComments(curProject);  if (bs!=null) {  ((BugTreeModel) tree.getModel()).getOffListenerList(); ((BugTreeModel)tree.getModel()).changeSet(bs); curProject=BugLoader.getLoadedProject(); } setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); setProjectChanged(true); } }.start();
save(projectDirectory);
			public void actionPerformed(ActionEvent evt){				saveCommentsToBug(currentSelectedBugLeaf);								setCursor(new Cursor(Cursor.WAIT_CURSOR));				new Thread()				{					public void run()					{						updateDesignation();						BugSet bs=BugLoader.redoAnalysisKeepComments(curProject);												if (bs!=null)						{							//Dont clear data, the data's correct, just get the tree off the listener lists.							((BugTreeModel) tree.getModel()).getOffListenerList();							((BugTreeModel)tree.getModel()).changeSet(bs);							curProject=BugLoader.getLoadedProject();						}						setCursor(new Cursor(Cursor.DEFAULT_CURSOR));						setProjectChanged(true);					}				}.start();			}