FileDocCategorySizeDatePackage
VolumeRenderer.javaAPI DocExample780Mon Nov 09 12:45:50 GMT 1998None

VolumeRenderer

public class VolumeRenderer extends JScrollBar implements TableCellRenderer

Fields Summary
Constructors Summary
public VolumeRenderer()

    super(JScrollBar.HORIZONTAL);
  
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;