!7 abstract sclass DynPrintLogAndButtons > DynPrintLog { transient SingleComponentPanel buttons; visualize { ret centerAndSouth(super.visualize(), buttons = singleComponentPanel()); } void unvisualize { zeroAllFieldsOfTypeExcept(this, Component, 'buttons); } start { // keep this permanently to allow setting buttons in hidden module buttons = singleComponentPanel(); } void hideButtons { buttons.setComponent(null); } void showButtons(O... params) { buttons.setComponent(withMargin(centeredButtonsOrSingleComponent(params))); } }