panel.add(BorderLayout.CENTER, new JPanel() {
{
this.setLayout(new BorderLayout());
this.setBorder(BorderFactory.createEmptyBorder(6, 0, 0, 0));
this.add(BorderLayout.WEST, new JScrollPane(
gauche = new JList()) {
public Dimension getMinimumSize()
{
return new Dimension(200, 200);
}
public Dimension getPreferredSize()
{
return getMinimumSize();
}
});
this.add(BorderLayout.EAST, new JPanel() {
{
this.setLayout(new BorderLayout());
this.add(BorderLayout.CENTER, new JScrollPane(
droite = new JList()));
JPanel toolbar = new JPanel();
toolbar.setLayout(new FlowLayout(FlowLayout.CENTER));
toolbar.add(new JButton(monter));
toolbar.add(new JButton(descendre));
this.add(BorderLayout.SOUTH, toolbar);