Update implementation of setting the background window color of the main TKPJava window
Closed this issue · 1 comments
lynnlangit commented
Current method is 'clunky'
Tortoise.getBackgroundWindow( ).setBackground(PenColors.Grays.Silver);
should be something like this:
Tortoise.setBackgroundWindowColor(PenColors.Grays.Silver);
isidore commented
it's not clunky, it's good encapsulation. pushing it to the Tortoise creates a god object, reduces access to the rest of the background windows, doesn't teach about returning objects or trains (both important oo concepts).
Worse, it trains kids on bad object design, when we should be endeavoring to show them the best of object design.