Buyer Assist Data Display

Recall the code from Creating Data Displays...

public BuyerAssistPanel() {

    TreeListModel treeListModel = new TreeListModel(root);

    JList list = new JList(treeListModel);
    JTree tree = new JTree(treeListModel);

    tree.addTreeExpansionListener(treeListModel);

    list.setCellRenderer(new TreeListCellRenderer(WIDTHS_LIST));
    tree.setCellRenderer(new TreeListCellRenderer(WIDTHS_LIST));

    expanderButton = createTreeButton(TreeIcon.PLUS_ICON);
    collapseButton = createTreeButton(TreeIcon.MINUS_ICON);

    listHeaders = new BAColumnHeaders(TITLES_LIST, WIDTHS_LIST);
    treeHeaders = new BAColumnHeaders(expanderButton, collapseButton );

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

    scrollPane.setViewportView(tree);
    scrollPane.setRowHeaderView(list);
    scrollPane.setColumnHeaderView(treeHeaders);
    scrollPane.setCorner(JScrollPane.UPPER_LEFT_CORNER, listHeaders);
    scrollPane.setCorner(JScrollPane.LOWER_LEFT_CORNER, createLLCorner());
    scrollPane.setCorner(JScrollPane.UPPER_RIGHT_CORNER, createURCorner());
}