You'll want to wrap your posted code in
[/code] tags so that it retains its formatting and is easier to read.
Is your shape drawn in a JPanel's paintComponent method? If so, perhaps have a...
Type: Posts; User: curmudgeon
You'll want to wrap your posted code in
[/code] tags so that it retains its formatting and is easier to read.
Is your shape drawn in a JPanel's paintComponent method? If so, perhaps have a...
I think that you'll want to delete this answer as it is not a solution for the original poster's problem and may be misleading to him.
This all depends on how you're drawing things to the JPanel. I assume that you're either drawing to a BufferedImage or within a paintComponent method override. If a BufferedImage, simply draw a...