You can use either a JList or a JTable with a custom renderer. Read about renderers
here.
For a list, the renderer could be a JPanel with two JLabels with appropriate horizontal alignment. Or you could use a
BoxLayout and add a horizontal glue between the two labels.
For a table, you could extend DefaultTableCellRenderer and invoke the super implementation of getTableCellRendererComponent with the
hasFocus parameter
false.