GUIUtils.timeConsumingTaskStart(organizer); try { new Thread("SelectExperiment") { public void run() { selectExperimentFromDatabase(popupNode); GUIUtils.timeConsumingTaskEnd(organizer); } }.start(); } catch (RuntimeException re) { System.out.println("Runtime exception creating experiment: " + re); re.printStackTrace(); GUIUtils.timeConsumingTaskEnd(organizer); } }
GUIUtils.timeConsumingTaskStart(organizer); try { new Thread("DeleteExperiment") { public void run() { deleteExperimentFromDatabase(); GUIUtils.timeConsumingTaskEnd(organizer); } }.start(); } catch (RuntimeException re) { System.out.println("Runtime exception deleting experiment: " + re); re.printStackTrace(); GUIUtils.timeConsumingTaskEnd(organizer); } }
	public void actionPerformed(ActionEvent e) {          GUIUtils.timeConsumingTaskStart(organizer);          try {            new Thread("SelectExperiment") {              public void run() {                selectExperimentFromDatabase(popupNode);                GUIUtils.timeConsumingTaskEnd(organizer);              }            }.start();          } catch (RuntimeException re) {            System.out.println("Runtime exception creating experiment: " + re);            re.printStackTrace();            GUIUtils.timeConsumingTaskEnd(organizer);          }  	}