FileDocCategorySizeDatePackage
VolumeRenderer.javaAPI DocExample862Thu Oct 24 20:14:26 BST 2002None

VolumeRenderer

public class VolumeRenderer extends JSlider implements TableCellRenderer

Fields Summary
Constructors Summary
public VolumeRenderer()

    super(SwingConstants.HORIZONTAL);
    // set a starting size...some 1.2/1.3 systems need this
    setSize(115,15);
  
Methods Summary
public java.awt.ComponentgetTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)

    if (value == null) {
      return this;
    }
    if (value instanceof Volume) {
      setValue(((Volume)value).getVolume());
    }
    else {
      setValue(0);
    }
    return this;