/** * Create, if needed, and return the component label * * @return component label */ protected JLabel doMakeDisplayLabel() { if (displayLabel == null) { displayLabel = GuiUtils.cLabel(getName()); Font f = displayLabel.getFont(); f = f.deriveFont(18.0f); displayLabel.setFont(f); if (!labelShown) { displayLabel.setVisible(false); } } return displayLabel; }
/** * Set the LabelShown property. * * @param value The new value for LabelShown */ public void setLabelShown(boolean value) { labelShown = value; if (displayLabel != null) { displayLabel.setVisible(value); } }