Patch(revised): GLightweightPeer,Toolkit allow creation and display of lightweight components
Scott Gilbertson
scottg@mantatest.com
Wed Apr 30 15:58:00 GMT 2003
The attached program (Light.java) runs fine in the JRE, but not in gcj. I
tried it on a February 3.3 branch snapshot and on April 29ths tip code from
cvs. The attached patch fixes it by implementing lightweight peers for
Component and Container. I think this patch is essential for javax.swing,
because swing uses java.awt.Container (lightweight) as the base class for
JComponent.
The patch supersedes my previous one:
http://gcc.gnu.org/ml/java-patches/2002-q4/msg00344.html
I hope it's more acceptable. It's somewhat simpler.
Index: libjava/ChangeLog
from Scott Gilbertson <scottg@mantatest.com>
* gnu\java\awt\GLightweightPeer.java
(class GLightweightPeer): Added java.awt.peer.ContainerPeer implementation.
* java\awt\Toolkit.java (createComponent): Implemented.
patch and test program are attached
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20030429_LightweightContainer.patch.txt
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030430/b0c39f5c/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Light.java
Type: application/octet-stream
Size: 1514 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030430/b0c39f5c/attachment.obj>
More information about the Java-patches
mailing list