I\'m not aware of how to align the values of cells in JTable.
For Ex,The Jtable shows, Name Salary Mr.X 100000.50 XXXX 234.34
We need to make a small correction, the right way is DefaultTableCellRenderer.RIGHT
DefaultTableCellRenderer rightRenderer = new DefaultTableCellRenderer();
rightRenderer.setHorizontalAlignment(DefaultTableCellRenderer.RIGHT);
tableExample.getColumn("Price").setCellRenderer( rightRenderer );
Notice the difference with the original response of camickr, "Price" is the name of the column, change according to the case.