If I understand the problem correctly you can display the data in a JTable and the alignment will be specified by the table itself