Try to use swt of java to write a calculator.