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;
}
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);
}
}
}
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;
}
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;
}
Aggregations