> I agree with Scott that we need to add a LightweightContainerPeer class. > I fixed up Toolkit, as well. > I also added the painting methods to GtkLightweightContainerPeer (those > that override ComponentPeer). > > This is the updated ChangeLog. The newest patch is attached. > > 2006-02-22 Lillian Angel <[EMAIL PROTECTED]> > ...
I can't really comment on the GTK-specific parts, but I like the rest, assuming it all works (which I think it will). It should now run the attached program properly. Running that program, you should see a yellow box moving along, once per second, with the label text under the box changing each time. It stops after about 10 seconds. The program creates lightweight Components that aren't Containers, and uses the individual Component's repaint method rather than repainting the Container. It doesn't paint unless you resize the Frame or whatever, using the latest Classpath code from CVS.
LightweightRepaintTest.java
Description: Binary data
