use of org.baderlab.csplugins.enrichmentmap.view.heatmap.table.ColumnHeaderRankOptionRenderer in project EnrichmentMapApp by BaderLab.
the class HeatMapMainPanel method clearTableHeader.
private void clearTableHeader() {
JTableHeader header = table.getTableHeader();
TableColumnModel columnModel = table.getColumnModel();
if (columnModel.getColumnCount() > 0) {
TableColumn rankColumn = columnModel.getColumn(HeatMapTableModel.RANK_COL);
TableCellRenderer existingRenderer = rankColumn.getHeaderRenderer();
if (existingRenderer instanceof ColumnHeaderRankOptionRenderer) {
((ColumnHeaderRankOptionRenderer) existingRenderer).dispose(header);
}
}
}
Aggregations