Benvenuto al Ranch
Are you aware of the
@Override annotation, which tells you whether you have overridden a method? Always use @Override when you are trying to override a method. Put @Override before public void printComponent and try compiling again, and the compiler should complain bitterly. Reason: spelli
gn error. Not p
rint, but p
aint.
By the way: give that method
protected access, not public.