/**
   * create a new RatePropertyEditor
   *
   * @param renderer the renderer to use
   */
  public RatePropertyEditor(ListCellRenderer renderer) {
    editor = new JRate();

    ((JRate) editor).setStarWidth(17);
    ((JRate) editor).setSelectedStarColor(new Color(246, 255, 10));
    ((JRate) editor).setUnselectedStarColor(new Color(226, 226, 226));
  }
  public void setValue(Object value) {
    Object newValue = value;

    this.oldValue = value;

    if (value instanceof Rate) {
      ((JRate) editor).setRate((short) ((Rate) value).getRateValue());
    } else {
      ((JRate) editor).setRate(null);
    }
  }