View Single Post
  #4 (permalink)  
Old 07-03-2008, 08:42 PM
Norm's Avatar
Norm Norm is offline
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,223
Norm is on a distinguished road
A blink would be a time without the line showing and a time with the line showing. Do a repaint() every so often and have the painting method draw the line one time and then erase it the next. Use a boolean to keep track of which to do:
boolean clearLine = false;
...
clearLine = !clearLine; // switch modes

One way to clear a line would be to paint the line with the same color as the background.


Add some debugging println() statements to your code to see the control flow and the values of various variables. That might point out problems with your logic or a coding error.

Last edited by Norm : 07-03-2008 at 08:47 PM.
Reply With Quote