How to align rows to the right side in a JTable?
In this picture, the rows are aligned to left, how can I align the rows to the right side?

How to align rows to the right side in a JTable?
In this picture, the rows are aligned to left, how can I align the rows to the right side?

Simplest solution is to put your JTable in JScrollPane, and put this pane on plase of yours JTable and JTableHeader. JScrollPane will made everything for you without any headache.
yourPanel.add( new JScrollPane(yourTable) );