title: From command line to GUI
body: <p>What is the right approach to end up with a GUI Java program? Explain: I want to make a program that has a gui. Should i complete my program as command line aplplication and then creating the gui? Or start with e.x WindowBuilder, Java Fx and make it as a GUI application from the beggining? Assume that i have a user input using Scanner. When i want to end up with GUI should i have to change all the code to take input from JTextField?
  Be more specific: I have the following code </p>
  
  <pre><code>    //Add task to the List
      public void AddToList() {
      myList.add(task.setTaskDesc());
      System.out.println("New item " + task.tascDesc + " is added in your task list!");
  }
  </code></pre>
  
  <p>The AddToList method takes user (scanner input) and creates a task added in the list. So i have to change ALL the code to become GUI? 
  Its a general purpose question jast to understand wich is the normal way to make a full program as most of the programs need a GUI.</p>