Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.12 seconds.

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

    I don't normally do this, but I've modified your code to show you one way to accomplish your goal. The solution is relatively simple, but let me know if anything doesn't make sense.

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

    Hmm. I'd be interested in seeing an SSCCE that I could play with. This is an interesting problem.
  3. Re: How to detect mouse event while painting in a loop

    That's an interesting problem. I would perhaps use a BufferedImage, and draw one shape at a time to it (in a synchronized block), then call repaint() after each shape is drawn to the image. In...
Results 1 to 3 of 3