Index: applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/GraphViewDialog.java
===================================================================
--- applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/GraphViewDialog.java	(revision 26481)
+++ applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/GraphViewDialog.java	(revision 27359)
@@ -13,4 +13,5 @@
 import java.io.FileInputStream;
 import java.io.IOException;
+import java.util.Arrays;
 import java.util.Collections;
 import java.util.HashSet;
@@ -22,5 +23,5 @@
 import java.util.Set;
 
-import javax.swing.JButton;
+import javax.swing.AbstractAction;
 import javax.swing.JComboBox;
 import javax.swing.JLabel;
@@ -28,4 +29,5 @@
 
 import org.openstreetmap.josm.gui.dialogs.ToggleDialog;
+import org.openstreetmap.josm.gui.SideButton;
 import org.openstreetmap.josm.plugins.graphview.core.access.AccessRulesetReader;
 import org.openstreetmap.josm.plugins.graphview.core.visualisation.ColorScheme;
@@ -152,21 +154,14 @@
         }
 
-        this.add(BorderLayout.CENTER, selectionPanel);
-
-
-        JPanel buttonPanel = new JPanel();
-        JButton showLayerButton = new JButton(tr("Create/update graph"));
-        showLayerButton.addActionListener(new ActionListener() {
-            public void actionPerformed(ActionEvent e) {
-                plugin.createGraphViewLayer();
-            }
-        });
-        buttonPanel.add(showLayerButton);
-
-        this.add(BorderLayout.SOUTH, buttonPanel);
+        createLayout(selectionPanel, true, Arrays.asList(new SideButton[] {
+            new SideButton(new AbstractAction(tr("Create/update graph")) {
+                public void actionPerformed(ActionEvent e) {
+                    plugin.createGraphViewLayer();
+                }
+            })
+        }));
 
         updateSelections();
         this.preferences.addObserver(this);
-
     }
 
