The information in this article applies to:
When you use the Windows Foundation Classes for Java PaintEvent class, the member variable called clipRect erroneously returns the lower-right corner of the clip area instead of the width and height of the clip area in its member variables "width" and "height".
Make sure that any code that uses clipRect also uses the member variables named "width" and "height" as if they were named "right" and "bottom", respectively.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
RESULT: The output for a form that is 300 pixels wide and 275 pixels high should be like the following:
{x=202,y=153,width=300,height=275}
If the entire client area of the same form is repainted, you should see the following:
{x=0,y=0,width=300,height=275}
PaintEvent clipRect width height right bottom