[2710] in java-interest
subclassing Component
daemon@ATHENA.MIT.EDU (Andrew Wason)
Wed Oct 11 13:24:49 1995
To: java-interest@java.sun.com
Date: Wed, 11 Oct 95 11:02:46 -0400
From: Andrew Wason <aw@bae.bellcore.com>
The comments in the pre-beta Component.java say "Components
should not be subclassed or instantiated directly."
Why am I not allowed to subclass Component? If I try to, I get
an error because Components constructor is not public or
protected.
If I want to add a new UI control, what should I subclass it
from? Something somewhat generic like Canvas maybe? What if I'm
adding support for a new native UI control, I don't want a
duplicate native Canvas peer control created.
Andrew
_______________________________________________________________________________
Andrew Wason Bell Communications Research
aw@bae.bellcore.com Piscataway, NJ
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com