//package javaapplication1;
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
@SuppressWarnings("serial")
class ProgressRenderer extends JProgressBar
        implements TableCellRenderer {
    public ProgressRenderer(int min, int max) {
        super(min, max);
        setBorderPainted(false);
        setValue(0);
    }
    public Component getTableCellRendererComponent(
            JTable table, Object value, boolean isSelected,
            boolean hasFocus, int row, int column) {
        setValue((int) ((Float) value).floatValue());
        return this;
    }
}
