From: David ‘Bombe’ Roden Date: Mon, 7 Jun 2010 12:50:54 +0000 (+0200) Subject: Fix bug #4109: Set the preferred size on the scroll pane, not on the list. X-Git-Tag: 0.9.1~4 X-Git-Url: https://git.pterodactylus.net/?p=jSite.git;a=commitdiff_plain;h=23588fccf4e6abea1bfb680269abd57ed0d7cf87 Fix bug #4109: Set the preferred size on the scroll pane, not on the list. --- diff --git a/src/de/todesbaum/jsite/gui/ProjectPage.java b/src/de/todesbaum/jsite/gui/ProjectPage.java index 60dbd73..30d0511 100644 --- a/src/de/todesbaum/jsite/gui/ProjectPage.java +++ b/src/de/todesbaum/jsite/gui/ProjectPage.java @@ -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); }