Cool :) a working calculator :D
One bug: double press + - * or / and it will "java.lang.NumberFormatException: empty String" at Background.act(Background.java:82).
@GreenHouse, I would not actually call it working. For example '9 + 9 =' followed by '+ 9 =' returns '45'; '+ 9 =' again returns '99'; and again '207'! But, then again, Ed.Betteridge did say it was buggy. Not bad for a first project, though. I expect impovements are forthcoming.
One main thing that could realy help you is:
ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine engine = manager.getEngineByName("js");
Object result = engine.eval("3+4");
I had downloaded an earlier version of it. I could start a discussion and post the class codes there or you could supply your email address and I can get it to you that way.
2013/9/25
2013/9/25
2013/9/26
2013/9/26
2013/9/26
2013/9/27
2013/9/27
2013/9/27
2013/9/28
2013/9/28
2013/9/29
2013/12/17
2013/12/17