Lightweights--example
Let’s create a component using a subclass of component.
Suppose we have a lightweight subclass that draws an image as part of its paint method:
Previous slide
Next slide
Back to first slide
View graphic version