Simple calculator using Java and Swing