title: How to get the Input entered on JTextField in Java using Scanner object?
body: <p>I am learning java , I want to make one simple calculator program using GUI in Java. Idea is simple.</p>
  
  <p>Calculator has 2 <code>JTextField</code> for 1st number and for 2nd number.</p>
  
  <p>When I run that program will show -- <code>"Enter the First Number"</code> , below that <code>JTextField</code> to enter 1st number , below that <code>"Enter the Second Number"</code> , below that <code>JTextField</code> to enter 2nd number.</p>
  
  <p>My doubt/question is How to get those input from <code>JTextField</code> and assign it to <code>Scanner input1</code> and <code>Scanner input2</code> ? Is it possible to do that ? If not what are the alternative ways ? </p>
  
  <p>Hope you will understand my question , if you are in-front of me I hope I will explain it more properly .</p>