-I have a java JFrame, with a (1,1) Gridlayout, to which I have added a JPanel. I have overrided paintComponent to do some drawing. All of this I have successfully done. I find that the contents of my JFrame seems
to flicker slightly when I move it around.

-I am constantly drawing and re-drawing on my JPanel. I draw a whole series of drawRect() vertical stripes as graph data, and then draw a big black drawRect() over the top to erase the screen; I then use my data to draw again. My vertical stripes are from a constantly flowing data strea of java bytes.

-Is there some better way to prevent my flickering when I move my JFrame to different screen locations?