G
Georg Andersson
hi
i have a litte code, that draws a line while the mouse is pressed and
dragged. the line sould allways lead from the startpoint to the
current point. so it is necessary, that the line is deleted and
repainted on every MouseMotionEvent. i thought i just use the
repaint-method. but this results in very ugly flickering...
what would be the correct way for this problem?
any help will be greatly appreciated...
i have a litte code, that draws a line while the mouse is pressed and
dragged. the line sould allways lead from the startpoint to the
current point. so it is necessary, that the line is deleted and
repainted on every MouseMotionEvent. i thought i just use the
repaint-method. but this results in very ugly flickering...
what would be the correct way for this problem?
any help will be greatly appreciated...