/** Terminate the computation */ public void stop() { removeMouseListener(mouseListener); mouseListener = null; model.stop(); }
/** * Start the computation * * @throws Exception if an error happens while starting */ public void start() throws Exception { model.start(); mouseListener = new TreeMouseListener(this); addMouseListener(mouseListener); }