Search in sources :

Example 1 with CentreRenderer

use of com.romraider.logger.ecu.ui.swing.tools.tablemodels.renderers.CentreRenderer in project RomRaider by RomRaider.

the class NCSLearningTableValuesResultsPanel method formatTableHeader.

private final JTableHeader formatTableHeader(JTable table) {
    final JTableHeader th = table.getTableHeader();
    th.setReorderingAllowed(false);
    th.setDefaultRenderer(new CentreRenderer(table));
    SetFont.bold(th, 11);
    return th;
}
Also used : JTableHeader(javax.swing.table.JTableHeader) CentreRenderer(com.romraider.logger.ecu.ui.swing.tools.tablemodels.renderers.CentreRenderer)

Example 2 with CentreRenderer

use of com.romraider.logger.ecu.ui.swing.tools.tablemodels.renderers.CentreRenderer in project RomRaider by RomRaider.

the class IntfKitConvertorPanel method setTableBehaviour.

private final void setTableBehaviour(JTable table) {
    table.setBorder(null);
    table.setFillsViewportHeight(false);
    table.setColumnSelectionAllowed(false);
    table.setRowSelectionAllowed(false);
    final JTableHeader th = table.getTableHeader();
    th.setReorderingAllowed(false);
    th.setDefaultRenderer(new CentreRenderer(table));
    TableColumn column = null;
    for (int i = 0; i < table.getColumnCount(); i++) {
        column = table.getColumnModel().getColumn(i);
        if (i == 0) {
            column.setPreferredWidth(150);
        } else if (i == 1) {
            column.setPreferredWidth(150);
        } else {
            column.setPreferredWidth(50);
        }
    }
}
Also used : JTableHeader(javax.swing.table.JTableHeader) CentreRenderer(com.romraider.logger.ecu.ui.swing.tools.tablemodels.renderers.CentreRenderer) TableColumn(javax.swing.table.TableColumn)

Example 3 with CentreRenderer

use of com.romraider.logger.ecu.ui.swing.tools.tablemodels.renderers.CentreRenderer in project RomRaider by RomRaider.

the class SSMLearningTableValuesResultsPanel method formatTableHeader.

private final JTableHeader formatTableHeader(JTable table) {
    final JTableHeader th = table.getTableHeader();
    th.setReorderingAllowed(false);
    th.setDefaultRenderer(new CentreRenderer(table));
    SetFont.bold(th, 11);
    return th;
}
Also used : JTableHeader(javax.swing.table.JTableHeader) CentreRenderer(com.romraider.logger.ecu.ui.swing.tools.tablemodels.renderers.CentreRenderer)

Example 4 with CentreRenderer

use of com.romraider.logger.ecu.ui.swing.tools.tablemodels.renderers.CentreRenderer in project RomRaider by RomRaider.

the class DS2LearningTableValuesResultsPanel method formatTableHeader.

private final JTableHeader formatTableHeader(JTable table) {
    final JTableHeader th = table.getTableHeader();
    th.setReorderingAllowed(false);
    th.setDefaultRenderer(new CentreRenderer(table));
    SetFont.bold(th, 11);
    return th;
}
Also used : JTableHeader(javax.swing.table.JTableHeader) CentreRenderer(com.romraider.logger.ecu.ui.swing.tools.tablemodels.renderers.CentreRenderer)

Aggregations

CentreRenderer (com.romraider.logger.ecu.ui.swing.tools.tablemodels.renderers.CentreRenderer)4 JTableHeader (javax.swing.table.JTableHeader)4 TableColumn (javax.swing.table.TableColumn)1