How can I repaint during resizing a Frame?
Posted on 2005-05-06
I'm completely new to Java ... never touched the stuff before, but I got an itch to play around in it. Now I'm trying to figure out how to repaint while the resizing of a Frame or JFrame is happening.
I'm running a Windows system with the "Show window contents while dragging" effect turned on. This means that when I drag a window around the screen, or when I resize a window, I get to see the window change as that happens. The problem I'm having is that my ComponentListener is not firing the componentResized event while I'm actually resizing the window. It only fires once I let go of the mouse button, thus completing the resize.
It appears that it is possible to handle repainting while resizing. I'm using the Eclipse editor and it seems to handle it just fine. So what am I missing?