add(new JScrollPane(dynamicList), BorderLayout.CENTER);
JPanel buttonPanel = new JPanel(new GridLayout(2, 1));
// Create 'Move item up' button
JButton moveButton = new ArrowButton(dynamicList.getMoveUpAction(), ArrowButton.UP_DIRECTION);
// Constrain the button's size which by default is huge under Windows/Java 1.5
moveButton.setPreferredSize(new Dimension(19, 0));
// Make the button non focusable so that it doesn't steal focus from the list
moveButton.setFocusable(false);
moveButton.setToolTipText(Translator.get("sortable_list.move_up"));
buttonPanel.add(moveButton);
// Create 'Move item down' button
moveButton = new ArrowButton(dynamicList.getMoveDownAction(), ArrowButton.DOWN_DIRECTION);
// Constrain the button's size which by default is huge under Windows/Java 1.5
moveButton.setPreferredSize(new Dimension(19, 0));
// Make the button non focusable so that it doesn't steal focus from the list
moveButton.setFocusable(false);
moveButton.setToolTipText(Translator.get("sortable_list.move_down"));
buttonPanel.add(moveButton);
add(buttonPanel, BorderLayout.EAST);
}