Click on jButton and than enter the given code:
double num1 = Double.parseDouble(jTextField1.getText());
double num2 = Double.parseDouble(jTextField2.getText());
double num3 = num1 + num2;
jTextField3.setText(""+num3);
Enter a number: 6
Factorial of 5 is: 720