GUIUtils.timeConsumingTaskStart(organizer); try { new Thread("SelectRecipe") { public void run() { selectRecipeFromDatabase(popupNode); GUIUtils.timeConsumingTaskEnd(organizer); } }.start(); } catch (RuntimeException re) { System.out.println("Runtime exception creating recipe: " + re); re.printStackTrace(); GUIUtils.timeConsumingTaskEnd(organizer); } }
newRecipe(); }
	public void actionPerformed(ActionEvent e) {          GUIUtils.timeConsumingTaskStart(organizer);          try {            new Thread("SelectRecipe") {              public void run() {                selectRecipeFromDatabase(popupNode);                GUIUtils.timeConsumingTaskEnd(organizer);              }            }.start();          } catch (RuntimeException re) {            System.out.println("Runtime exception creating recipe: " + re);            re.printStackTrace();            GUIUtils.timeConsumingTaskEnd(organizer);          }  	}