|
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.
|