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] | |
On Fri, 2003-08-08 at 15:38, Scott Gilbertson Onsite wrote:I claim that lightweights are not platform-specific, which is why I
submitted the following patch (which has not been comitted) a while back.
http://gcc.gnu.org/ml/java-patches/2003-q2/msg00140.html
I've adopted your approach and implemented some of the ComponentPeer methods. I tried to copy the behaviour of the corresponding Component calls when peer == null. My rational is that maybe we can eventually remove the peer != null checks in Component.java, and assume that a component always has a non-null peer, whether it be lightweight or heavyweight.
In the original thread, Tom mentioned that returning a gnu.java.awt class from a java.awt class might not be a good idea. What about implementing LightweightPeer as a private inner class of Component.java? This approach would have the advantage that the peer would have direct access to Component's fields.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |