I'm having a problem with clipping bounds not being what I expect them to be. I must not fully understand what's going on. Here is a simple example to illustrate the problem:
In the code above, java.awt.Rectangle[x=0,y=0,width=98,height=144] is initially printed. This seems like a reasonable clip. However, when I scroll down one unit, I get java.awt.Rectangle[x=0,y=144,width=98,height=1]. What is happening here? I was expecting to see something like java.awt.Rectangle[x=0,y=1,width=98,height=144]. Also, if I then scroll back up one unit, I get java.awt.Rectangle[x=0,y=0,width=98,height=1]. Why is it not back to the original clip?
Can someone please explain what's going on? Thank you.
In the code above, java.awt.Rectangle[x=0,y=0,width=98,height=144] is initially printed. This seems like a reasonable clip. However, when I scroll down one unit, I get java.awt.Rectangle[x=0,y=144,width=98,height=1]. What is happening here? I was expecting to see something like java.awt.Rectangle[x=0,y=1,width=98,height=144]. Also, if I then scroll back up one unit, I get java.awt.Rectangle[x=0,y=0,width=98,height=1]. Why is it not back to the original clip?
Can someone please explain what's going on? Thank you.