From 029a14b5bec6d88230bc1b7ed986d072d62166ee Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Mon, 4 Jun 2012 13:36:23 +0200 Subject: [PATCH] Placed the radio medium selection in the Advanced settings frame. --- .../se/sics/cooja/dialogs/CreateSimDialog.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/dialogs/CreateSimDialog.java b/tools/cooja/java/se/sics/cooja/dialogs/CreateSimDialog.java index 7a4380d07..6e261a39a 100644 --- a/tools/cooja/java/se/sics/cooja/dialogs/CreateSimDialog.java +++ b/tools/cooja/java/se/sics/cooja/dialogs/CreateSimDialog.java @@ -224,6 +224,10 @@ public class CreateSimDialog extends JDialog { vertBox.add(horizBox); vertBox.add(Box.createRigidArea(new Dimension(0,5))); + // -- Advanced settings -- + Box advancedBox = Box.createVerticalBox(); + advancedBox.setBorder(BorderFactory.createTitledBorder("Advanced settings")); + // Radio Medium selection horizBox = Box.createHorizontalBox(); horizBox.setMaximumSize(new Dimension(Integer.MAX_VALUE,LABEL_HEIGHT)); @@ -248,12 +252,10 @@ public class CreateSimDialog extends JDialog { horizBox.add(comboBox); horizBox.setToolTipText("Determines the radio surroundings behaviour"); - vertBox.add(horizBox); - vertBox.add(Box.createRigidArea(new Dimension(0,5))); - - // -- Advanced settings -- - Box advancedBox = Box.createVerticalBox(); - advancedBox.setBorder(BorderFactory.createTitledBorder("Advanced settings")); + /*vertBox.add(horizBox); + vertBox.add(Box.createRigidArea(new Dimension(0,5)));*/ + advancedBox.add(horizBox); + advancedBox.add(Box.createRigidArea(new Dimension(0,5))); // Delayed startup horizBox = Box.createHorizontalBox(); @@ -316,7 +318,7 @@ public class CreateSimDialog extends JDialog { }); horizBox.add(label); - horizBox.add(Box.createHorizontalStrut(116)); + horizBox.add(Box.createHorizontalStrut(144)); horizBox.add(randomSeedGenerated); advancedBox.add(horizBox);