Search:

Type: Posts; User: r9reen

Search: Search took 0.12 seconds.

  1. Re: How to detect mouse event while painting in a loop

    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

    ...
  2. Re: How to detect mouse event while painting in a loop

    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....
  3. Re: How to detect mouse event while painting in a loop

    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...
  4. How to detect mouse event while painting in a loop

    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...
Results 1 to 4 of 4