title: Display loaded content into TextArea
body: <p>I want to display information that I have loaded in from 2 methods onto my <code>TextArea</code>. The methods I am trying to call and display are named <code>loadFleet</code> and <code>loadCrew</code> which are in the <code>Fleet</code> class. I only have it working to where it prints out to the console like so <code>System.out.println(Enterprise)</code>. I am pretty new to Java and JavaFX, so any help would be greatly appreciated.</p>
  
  <p>Here's my MainController file:</p>
  
  <pre><code>package application.controller;
  import java.io.IOException;
  import application.model.Fleet; 
  import javafx.event.ActionEvent;
  import javafx.event.EventHandler;
  import javafx.fxml.FXML;
  import javafx.scene.control.Button;
  import javafx.scene.control.TextArea;
  import javafx.scene.control.TextField;
  
  public class MainController implements EventHandler&lt;ActionEvent&gt;{
  
  
  @FXML TextField starshipname;
  @FXML TextArea shipInfo;
  @FXML Button shipEnter;
  
  @Override
  public void handle( ActionEvent event) {
  
      /*try {
          Fleet.loadFleet(null);
      } catch (IOException e) {
          shipInfo.setText(" Starship name not found! ");
          e.printStackTrace();
      }*/
  
      Fleet Enterprise = new Fleet( "Bozeman" );
       try {
           Enterprise.loadFleet("data/fleet");
           Enterprise.loadCrew("data/personnel");
  
           System.out.println(Enterprise);
       }catch( IOException e ) {
              System.out.println( "Error loading the file - please check its location." );
              e.printStackTrace();
          }
  }
  }
  </code></pre>
  
  <p>And here's my Fleet class:</p>
  
  <pre><code>package application.model;
  import java.io.File;
  import java.io.IOException;
  import java.util.ArrayList;
  import java.util.Scanner;
  
  public class Fleet {
  
  
  private String fleetName;
  public ArrayList&lt;Starship&gt; ship;
  private String fileName;
  
  public Fleet( String name ) {
      this.fleetName = name;
      this.ship = new ArrayList&lt;Starship&gt;();
  }
  
  public String getFleetName() {
      return this.fleetName;
  }
  public void setFleetName( String name ) {
      this.fleetName = name;
  }
  
  public ArrayList&lt;Starship&gt; getStarship() {
      return this.ship;
  }
  public void setStarship( ArrayList&lt;Starship&gt; ship ) {
      this.ship = ship;
  }
  
  public String getFileName() {
      return this.fileName;
  }
  public void setFileName( String fName ) {
      this.fileName = fName;
  }
  
  public void addShip(Starship starAdd) {
      this.ship.add(starAdd);
  }
  
  public void getStarshipsByName( Starship starName ) {
      Starship starname;
  }
  
  public void loadFleet(String fileName)throws IOException {
      try {
          Scanner scan = new Scanner(new File("data/fleet.csv") );
  
          while( scan.hasNextLine() ) {
              String line = scan.nextLine();
              String[] items = line.split(",");
              Starship tmp = null;
  
              tmp = new Starship( items[0], items[1], items[2]);
              this.addShip(tmp);
          }
          scan.close();
      }catch(IOException e) {
          e.printStackTrace();
      }
  }
  public void loadCrew(String fileName)throws IOException {
      try {
      Scanner scan = new Scanner(new File("data/personnel.csv") );
  
      while( scan.hasNextLine() ) {
          String line = scan.nextLine();
          String[] items = line.split(",");
          Crewmember tmp = null;
  
          tmp = new Crewmember( items[0], items[1], items[2], items[3], items[4]);
  
          for(int i = 0; i &lt; this.ship.size(); ++i) {
              if(this.ship.get(i).getStarShipRegistry().equals(items[3]))
                      this.ship.get(i).addCrew( tmp );
          }
      }
      scan.close();
  } catch(IOException e) {
      e.printStackTrace();
  }
  }
  public String toString() {
      String ret = " ";
  
      for( int i = 0; i &lt; this.ship.size(); i++)
      {
          ret += this.ship.get(i).toString();
      }
      return ret;
  }
  }
  </code></pre>
  
  <p>Please let me know what other classes or methods you would like for me to provide.</p>