This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch(revised): GLightweightPeer,Toolkit allow creation and display of lightweight components
- From: Tom Tromey <tromey at redhat dot com>
- To: "Scott Gilbertson" <scottg at mantatest dot com>
- Cc: <java-patches at gcc dot gnu dot org>
- Date: 08 May 2003 12:51:41 -0600
- Subject: Re: Patch(revised): GLightweightPeer,Toolkit allow creation and display of lightweight components
- References: <00fd01c30f30$9b7d41b0$3c16a8c0@mantatest.com>
- Reply-to: tromey at redhat dot com
>>>>> "Scott" == Scott Gilbertson <scottg@mantatest.com> writes:
Scott> The attached program (Light.java) runs fine in the JRE, but not
Scott> in gcj.
Thanks for including a test case -- that's nice.
Scott> I tried it on a February 3.3 branch snapshot and on April 29ths
Scott> tip code from cvs. The attached patch fixes it by implementing
Scott> lightweight peers for Component and Container. I think this
Scott> patch is essential for javax.swing, because swing uses
Scott> java.awt.Container (lightweight) as the base class for
Scott> JComponent.
Honestly I don't know much about lightweight components.
It seems incorrect to bless one particular lightweight component
implementation in Toolkit. I think this should depend on the
particular Toolkit.
So I think the code in your Toolkit change should go into
XToolkit.java.
It's likely I'm missing something. If it does make sense to bless a
particular lightweight component implementation, then this should be
dealt with in Classpath first.
Tom