-
Enhancement
-
Resolution: Duplicate
-
P5
-
None
-
1.1.1
-
x86
-
windows_95
Name: sgC58550 Date: 06/26/97
It seems that making most of the instance variables default, when
creating lightweight classes that are not in java.awt.*, a new
variable must be introduced to perform the same action. All events
dispatched must be re-implemented in the new class.
For example, if you look at the demo\awt-1.1\lightweight\RoundButtons
example, mouseListener is re-introduced so that it can fire events
to the listeners. If the mouseListeners were protected this wouldn't
happen. Obviously, this example is quite simple but if you imagine
a more complex example that may deal in more events, it can get out of
hand.
company - IBM , email - ###@###.###
======================================================================
- duplicates
-
JDK-4064665 Accessing member variables of the base class from the derived class.
-
- Closed
-