Example #1
0
 /**
  * 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);
 }
Example #2
0
 @Override
 public void actionPerformed(final ActionEvent e) {
   rend.caret(!rend.caret());
 }