示例#1
0
  /**
   * 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;
  }
示例#2
0
 /**
  * Set the LabelShown property.
  *
  * @param value The new value for LabelShown
  */
 public void setLabelShown(boolean value) {
   labelShown = value;
   if (displayLabel != null) {
     displayLabel.setVisible(value);
   }
 }