public class PositionsTableHeaderRenderer extends DefaultTableCellRenderer {
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int rowIndex, int columnIndex) {
JLabel label = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, rowIndex, columnIndex);
label.setHorizontalAlignment(LEFT);
label.setOpaque(false);
PositionTableColumn column = (PositionTableColumn) table.getColumnModel().getColumn(columnIndex);
String name = RouteConverter.getBundle().getString(column.getName());
label.setText(name);
label.setToolTipText(name);
return label;
}