Thank you Kevin for the great code! Meanwhile I found another solution using a buffered image (as you suggested) and no timers. I post it here for the record.
You made my day!
Robert
...
Type: Posts; User: r9reen
Thank you Kevin for the great code! Meanwhile I found another solution using a buffered image (as you suggested) and no timers. I post it here for the record.
You made my day!
Robert
...
OK. In the following code, the mouseMoved() method resets the line count to zero. When this happens (when the mouse moves), I want the painting of lines to restart from the beginning immediately....
Thank you Kevin. I tested what you suggested thoroughly. Before calling repaint() in the loop, I test a boolean variable to see if I should break the loop or continue. The same boolean is set to true...
Hi everyone,
I really need your help with this. I have a JFrame and a JPanel in it. In the overridden paint event of the JPanel, I draw thousands of different shapes (lines, etc.) - I loop in a...