Exemplo n.º 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();
 }
Exemplo n.º 2
0
 @Override
 public void actionPerformed(final ActionEvent e) {
   rend.cursor(!rend.cursor());
   rend.repaint();
 }