做如下修改:
public void start() { //加法在这里进行
x=Integer.parseInt(JOptionPane.showInputDialog("please input a value"));
y=Integer.parseInt(JOptionPane.showInputDialog("please input a value"));
sum=x+y;
first.setText("The X is " + x);
second.setText("The Y is " + y);
third.setText("The SUM is "+sum);

}