A Java swing based calculator