Code example for JLabel

Methods: getTextsetText

0
    return statusHolder.getText();
  } 
 
  public void setStatusText(final String text)
  { 
    final String oldText = statusHolder.getText();
    this.statusHolder.setText(text);
    firePropertyChange(STATUS_TEXT_PROPERTY, oldText, text); //$NON-NLS-1$
  } 
 
  public void setStatusType(final StatusType type)
  { 
    if (statusType == null)
    { 
      throw new NullPointerException();
    } 
    final StatusType oldType = statusType;
    this.statusType = type;
    firePropertyChange(STATUS_TYPE_PROPERTY, oldType, type); //$NON-NLS-1$
    updateTypeIcon(type);
Experience pair programming with AI  Get Codota for Java