Fix bug #4109: Set the preferred size on the scroll pane, not on the list.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 7 Jun 2010 12:50:54 +0000 (14:50 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 7 Jun 2010 12:50:57 +0000 (14:50 +0200)
src/de/todesbaum/jsite/gui/ProjectPage.java

index 60dbd73..30d0511 100644 (file)
@@ -162,9 +162,9 @@ public class ProjectPage extends TWizardPage implements ListSelectionListener, D
                projectList = new JList(projectListModel);
                projectList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
                projectList.addListSelectionListener(this);
-               projectList.setPreferredSize(new Dimension(150, projectList.getPreferredSize().height));
 
                add(projectScrollPane = new JScrollPane(projectList), BorderLayout.LINE_START);
+               projectScrollPane.setPreferredSize(new Dimension(150, projectList.getPreferredSize().height));
                add(createInformationPanel(), BorderLayout.CENTER);
        }