Examples of PositionTableColumn


Examples of slash.navigation.converter.gui.models.PositionTableColumn

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;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.