setLayout(new BorderLayout());
JButton button = new JButton("Print");
button.addActionListener(new PrintListener());
booklist = new JList(books);
booklist.setCellRenderer(new BookCellRenderer());
booklist.setVisibleRowCount(4);
JScrollPane pane = new JScrollPane(booklist);
add(pane, BorderLayout.NORTH);
add(button, BorderLayout.SOUTH);