public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int rowIndex, int columnIndex) { Component comp = configureDelegate(table, value, isSelected, hasFocus, rowIndex, columnIndex); if ((table instanceof JXTable) && (comp instanceof JComponent)) { // work-around core issues hackBorder((JComponent) comp); SortOrder sortOrder = ((JXTable) table).getSortOrder(columnIndex); // Border border = UIManager.getBorder("TableHeader.cellBorder"); // LOG.info("in renderer: " + UIManager.getBorder("TableHeader.cellBorder")); if (sortOrder.isSorted()) { iconBorder.setIcon(sortOrder.isAscending() ? upIcon : downIcon); Border origBorder = ((JComponent) comp).getBorder(); Border border = new CompoundBorder(origBorder, iconBorder); ((JComponent) comp).setBorder(border); } } adjustComponentOrientation(comp); return comp; }