package Common.Visual.Tables;
import Common.Visual.Controls.StyledProgressBar;

import javax.swing.*;
import javax.swing.table.TableCellRenderer;
public class RendererProgressBar extends StyledProgressBar implements TableCellRenderer {
    @Override
    public java.awt.Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
        setBackground(isSelected ? table.getSelectionBackground() : table.getBackground());
        setValue((Integer) value);
        return this;
    }
}


