/** * Handles the cursor thread; interrupts the old thread as soon as new one has been started. * * @param start start/stop flag */ final void cursor(final boolean start) { cursor.stop(); if (start) cursor.start(); rend.cursor(start); rend.repaint(); }
@Override public void actionPerformed(final ActionEvent e) { rend.cursor(!rend.cursor()); rend.repaint(); }