public void setLabelsVisible(boolean b) {
Component c;
int i = 0;
while ((c = getComponentAtIndex(i++)) != null) {
if (c instanceof DcToolBarButton) {
DcToolBarButton button = (DcToolBarButton) c;
if (b) button.showText();
else button.hideText();
}
}
DcSettings.set(DcRepository.Settings.stShowMenuBarLabels, b);
}