From 0e59f1493a206866701c923606f4d36acae6b51c Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 5 Sep 2014 07:05:50 +0200 Subject: [PATCH] Fix scroll pane in node manager dialog. --- src/main/java/de/todesbaum/jsite/gui/NodeManagerPage.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/todesbaum/jsite/gui/NodeManagerPage.java b/src/main/java/de/todesbaum/jsite/gui/NodeManagerPage.java index 7b904d9..124724b 100644 --- a/src/main/java/de/todesbaum/jsite/gui/NodeManagerPage.java +++ b/src/main/java/de/todesbaum/jsite/gui/NodeManagerPage.java @@ -198,7 +198,6 @@ public class NodeManagerPage extends TWizardPage implements ListSelectionListene nodeList.setName("node-list"); nodeList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); nodeList.addListSelectionListener(this); - nodeList.setPreferredSize(new Dimension(250, -1)); nodeNameTextField = new JTextField(""); nodeNameTextField.getDocument().putProperty("Name", "node-name"); @@ -237,7 +236,9 @@ public class NodeManagerPage extends TWizardPage implements ListSelectionListene nodeInformationPanel.add(nodePortSpinner, new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.NONE, new Insets(6, 6, 0, 0), 0, 0)); setLayout(new BorderLayout(12, 12)); - add(new JScrollPane(nodeList), BorderLayout.LINE_START); + final JScrollPane nodeListScrollPane = new JScrollPane(nodeList); + nodeListScrollPane.setPreferredSize(new Dimension(250, -1)); + add(nodeListScrollPane, BorderLayout.LINE_START); add(centerPanel, BorderLayout.CENTER); I18nContainer.getInstance().registerRunnable(new Runnable() { -- 2.7.4