From 2de5e7ac9956a0b12addf462055365814a3cfbdf 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:33 +0200 Subject: [PATCH] Select new node after adding it. --- src/main/java/de/todesbaum/jsite/gui/NodeManagerPage.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/de/todesbaum/jsite/gui/NodeManagerPage.java b/src/main/java/de/todesbaum/jsite/gui/NodeManagerPage.java index 49c25bc..7b904d9 100644 --- a/src/main/java/de/todesbaum/jsite/gui/NodeManagerPage.java +++ b/src/main/java/de/todesbaum/jsite/gui/NodeManagerPage.java @@ -347,6 +347,7 @@ public class NodeManagerPage extends TWizardPage implements ListSelectionListene private void addNode() { Node node = new Node("localhost", 9481, I18n.getMessage("jsite.node-manager.new-node")); nodeListModel.addElement(node); + nodeList.setSelectedIndex(nodeListModel.size() - 1); deleteNodeAction.setEnabled(nodeListModel.size() > 1); wizard.setNextEnabled(true); fireNodesUpdated(getNodes()); -- 2.7.4