JTable, custom header renderer and sorting icons
问题 While setting a custom renderer on a JTable header I get the expected visual behavior (borders, font, alignment, ...) but I can't manage to get the LaF sorting icons that usually appear when the rows are sorted. This is the code for setting the custom header renderer: Enumeration<TableColumn> columns = getColumnModel().getColumns(); while (columns.hasMoreElements()) columns.nextElement().setHeaderRenderer(new XDeliveryTableHeaderRenderer()); This is an excerpt of the custom header renderer: