Creating Data Displays

In a nutshell (some details left out) here is the code for creating a data display.

public PartExpertPanel() {

    ListModel listModel = DataListModel.getPartsListModel();

    JList listLt = new DataList(listModel, WIDTHS_LT);
    JList listRt = new DataList(listModel);

    listRt.setSelectionModel(listLt.getSelectionModel());

    listLt.setCellRenderer(MultiCellRenderer.createPartsRendererLeft(WIDTHS_LT));
    listRt.setCellRenderer(MultiCellRenderer.createPartsRendererRight(WIDTHS_RT));

    ColumnHeaders headersRt = new ColumnHeaders(TITLES_RT, WIDTHS_RT);
    ColumnHeaders headersLt = new ColumnHeaders(TITLES_LT, WIDTHS_LT);

    scrollPane = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, 
                                 JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);

    scrollPane.setViewportView(listRt);
    scrollPane.setRowHeaderView(listLt);
    scrollPane.setColumnHeaderView(headersRt);
    scrollPane.setCorner(JScrollPane.UPPER_LEFT_CORNER, headersLt);
    scrollPane.setCorner(JScrollPane.LOWER_LEFT_CORNER, createLLCorner());
    scrollPane.setCorner(JScrollPane.UPPER_RIGHT_CORNER, createURCorner());
}