I have an application which uses double buffers to paint the screen constantly in window mode. When I place the mouse cursor on the screen, I can see that the mouse cursor is shaking as the screen gets painted, which is understandable since the screen gets refreshed constantly. I assume that I’m not using the page flipping feature since I’m in the window mode not full screen mode. The application uses menu bars and popup menus which prevent me from using full screen mode.
However, if I first execute the sample program MultiBufferTest.java at http://java.sun.com/docs/books/tutorial/extra/fullscreen/example.html
and then run the application again , the mouse cursor on the screen does not shake any more as the screen gets repainted, which is what I want. I studied the MultiBufferTest.java which uses BufferStrategy, DisaplyMode and full screen mode. I just do not understand why program MultiBufferTest.java could have impact on my application. It has to have something to do with VRAM. How can I take some of features from MultiBufferTest.java and merge with my application so that I can get rid of the mouse cursor shaking when refreshing the screen and at same time still running in window mode ?