diff --git a/src/opensesim/gui/PreferencesEditor/EditPreferencesDialog.form b/src/opensesim/gui/PreferencesEditor/EditPreferencesDialog.form index af27bbe..c0e3bd4 100644 --- a/src/opensesim/gui/PreferencesEditor/EditPreferencesDialog.form +++ b/src/opensesim/gui/PreferencesEditor/EditPreferencesDialog.form @@ -1,6 +1,6 @@ -
+ @@ -30,22 +30,10 @@ - - - - - - - - - - - - @@ -64,8 +52,25 @@ + + + + + + + + + + + + + + + + + - + @@ -90,7 +95,12 @@ - + + + + + + @@ -182,5 +192,17 @@ + + + + + + + + + + + + diff --git a/src/opensesim/gui/PreferencesEditor/EditPreferencesDialog.java b/src/opensesim/gui/PreferencesEditor/EditPreferencesDialog.java index 5930907..691f748 100644 --- a/src/opensesim/gui/PreferencesEditor/EditPreferencesDialog.java +++ b/src/opensesim/gui/PreferencesEditor/EditPreferencesDialog.java @@ -97,6 +97,8 @@ public class EditPreferencesDialog extends opensesim.gui.util.EscDialog { classPathChoseButton = new javax.swing.JButton(); jLabel2 = new javax.swing.JLabel(); xClassPath = new javax.swing.JTextField(); + jSpinner1 = new javax.swing.JSpinner(); + jLabel3 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("OpenSeSim Preferences"); @@ -148,6 +150,10 @@ public class EditPreferencesDialog extends opensesim.gui.util.EscDialog { jLabel2.setText("Additional Path:"); + jSpinner1.setModel(new javax.swing.SpinnerNumberModel(1, 1, null, 1)); + + jLabel3.setText("Number of threads:"); + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( @@ -155,18 +161,9 @@ public class EditPreferencesDialog extends opensesim.gui.util.EscDialog { .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(layout.createSequentialGroup() - .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(28, 28, 28) - .addComponent(lafComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(418, 418, 418)) - .addGroup(layout.createSequentialGroup() - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(godmodeCheckBox) - .addComponent(jDevleopmentFeaturesCheckBox)) - .addGap(0, 0, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() @@ -180,7 +177,20 @@ public class EditPreferencesDialog extends opensesim.gui.util.EscDialog { .addComponent(xClassPath) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(classPathChoseButton, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE))) - .addGap(3, 3, 3))) + .addGap(3, 3, 3)) + .addGroup(layout.createSequentialGroup() + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(godmodeCheckBox) + .addComponent(jDevleopmentFeaturesCheckBox) + .addGroup(layout.createSequentialGroup() + .addComponent(jLabel3) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addGap(0, 0, Short.MAX_VALUE)) + .addGroup(layout.createSequentialGroup() + .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(lafComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addContainerGap()) ); layout.setVerticalGroup( @@ -202,7 +212,11 @@ public class EditPreferencesDialog extends opensesim.gui.util.EscDialog { .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(classPathChoseButton) .addComponent(xClassPath, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addContainerGap(68, Short.MAX_VALUE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel3)) + .addContainerGap(42, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) @@ -350,6 +364,8 @@ public class EditPreferencesDialog extends opensesim.gui.util.EscDialog { private javax.swing.JCheckBox jDevleopmentFeaturesCheckBox; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; + private javax.swing.JLabel jLabel3; + private javax.swing.JSpinner jSpinner1; private javax.swing.JComboBox lafComboBox; private javax.swing.JButton okButton; private javax.swing.JTextField xClassPath;