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