Пример #1
0
 /**
  * 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();
 }
Пример #2
0
 @Override
 public void actionPerformed(final ActionEvent e) {
   rend.cursor(!rend.cursor());
   rend.repaint();
 }