Commit b5e25ce8 authored by Mihai Herda's avatar Mihai Herda
Browse files

Changed max number of iterations and function calls menu to exponential

values.
parent 64488197
......@@ -4,5 +4,5 @@
<entry key="maxFuncCalls">100</entry>
<entry key="configFileLoc"/>
<entry key="maxWhileIterations">100</entry>
<entry key="language">english</entry>
<entry key="language">default</entry>
</properties>
......@@ -403,7 +403,7 @@ public class MainInterface extends JFrame {
int maxFunctionCalls = Integer.valueOf(((JMenuItem) e.getSource()).getText());
controlFacade.setMaximumFunctionCalls(maxFunctionCalls);
};
for (int i = 0; i <= 200; i += 10) {
for (int i = 10; i <= 10000; i *= 10) {
JMenuItem maxFunctionCallsItem = new JMenuItem(Integer.toString(i));
maxFunctionCallsItem.addActionListener(maxFunctionCallsListener);
maxFunctionCalls.add(maxFunctionCallsItem);
......@@ -420,7 +420,7 @@ public class MainInterface extends JFrame {
int maxIterations = Integer.valueOf(((JMenuItem) e.getSource()).getText());
controlFacade.setMaximumIterations(maxIterations);
};
for (int i = 0; i <= 200; i += 10) {
for (int i = 10; i <= 10000; i *= 10) {
JMenuItem maxIterationsItem = new JMenuItem(Integer.toString(i));
maxIterationsItem.addActionListener(maxIterationsChangedListener);
maxIterations.add(maxIterationsItem);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment