Basically, I have a JTable containing columns with right-aligned cells but left-aligned headers which looks really bad. I would like to right-align the headers of these colu
DefaultTableCellRenderer renderer = (DefaultTableCellRenderer) MSISDNTable.getTableHeader().getDefaultRenderer(); renderer.setHorizontalAlignment(JLabel.RIGHT);
where MSISDNTable is your table
MSISDNTable