/** * Stops an old text cursor thread and, if requested, starts a new one. * * @param start start/stop flag */ private void caret(final boolean start) { caretTimer.stop(); if (start) caretTimer.start(); rend.caret(start); }
@Override public void actionPerformed(final ActionEvent e) { rend.caret(!rend.caret()); }