This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch(revised): GLightweightPeer,Toolkit allow creation and display of lightweight components


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

Attachment: 20030429_LightweightContainer.patch.txt
Description: Text document

Attachment: Light.java
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]