Is there any reason i can’t declare
Since label is a Component, we should be able to have a WeakReference on the derived class.
At the moment i need to declare it using the base class (because the Master is private):
WeakReference<Component> x = label;
so i’m forced to do ugly casts and gets later in the code.
Label* label = static_cast<Label*>(x.get());
Any possibility to improve this ?