Placed the radio medium selection in the Advanced settings frame.

This commit is contained in:
Adam Dunkels 2012-06-04 13:36:23 +02:00
parent 187364560c
commit 029a14b5be

View File

@ -224,6 +224,10 @@ public class CreateSimDialog extends JDialog {
vertBox.add(horizBox); vertBox.add(horizBox);
vertBox.add(Box.createRigidArea(new Dimension(0,5))); vertBox.add(Box.createRigidArea(new Dimension(0,5)));
// -- Advanced settings --
Box advancedBox = Box.createVerticalBox();
advancedBox.setBorder(BorderFactory.createTitledBorder("Advanced settings"));
// Radio Medium selection // Radio Medium selection
horizBox = Box.createHorizontalBox(); horizBox = Box.createHorizontalBox();
horizBox.setMaximumSize(new Dimension(Integer.MAX_VALUE,LABEL_HEIGHT)); horizBox.setMaximumSize(new Dimension(Integer.MAX_VALUE,LABEL_HEIGHT));
@ -248,12 +252,10 @@ public class CreateSimDialog extends JDialog {
horizBox.add(comboBox); horizBox.add(comboBox);
horizBox.setToolTipText("Determines the radio surroundings behaviour"); horizBox.setToolTipText("Determines the radio surroundings behaviour");
vertBox.add(horizBox); /*vertBox.add(horizBox);
vertBox.add(Box.createRigidArea(new Dimension(0,5))); vertBox.add(Box.createRigidArea(new Dimension(0,5)));*/
advancedBox.add(horizBox);
// -- Advanced settings -- advancedBox.add(Box.createRigidArea(new Dimension(0,5)));
Box advancedBox = Box.createVerticalBox();
advancedBox.setBorder(BorderFactory.createTitledBorder("Advanced settings"));
// Delayed startup // Delayed startup
horizBox = Box.createHorizontalBox(); horizBox = Box.createHorizontalBox();
@ -316,7 +318,7 @@ public class CreateSimDialog extends JDialog {
}); });
horizBox.add(label); horizBox.add(label);
horizBox.add(Box.createHorizontalStrut(116)); horizBox.add(Box.createHorizontalStrut(144));
horizBox.add(randomSeedGenerated); horizBox.add(randomSeedGenerated);
advancedBox.add(horizBox); advancedBox.add(horizBox);