add some spacing to menu label
[jSite2.git] / src / net / pterodactylus / jsite / gui / NodeLabel.java
index 46e8be1..8d3d098 100644 (file)
@@ -130,12 +130,15 @@ public class NodeLabel extends JLabel implements PropertyChangeListener, MouseLi
                setIcon(offlineIcon);
                contextMenu = new JPopupMenu();
                menuLabel = new I18nLabel("mainWindow.statusBar.nodeLabel", node.getName());
-               JPanel menuPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 0, 0));
+               JPanel menuPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 6, 0));
                menuPanel.add(menuLabel);
                contextMenu.add(menuPanel);
                contextMenu.addSeparator();
                contextMenu.add(swingInterface.getNodeConnectAction(node));
                contextMenu.add(swingInterface.getNodeDisconnectAction(node));
+               contextMenu.addSeparator();
+               contextMenu.add(swingInterface.getNodeEditAction(node));
+               contextMenu.add(swingInterface.getNodeDeleteAction(node));
                addMouseListener(this);
        }