title: How do I import my custom class correctly into this FXML file?
body: <p>I'm making a simple cookbook app to practice JavaFX and I'm running into a problem. I can't seem to import this class:</p>
  
  <pre><code>package application;
  
  import javafx.beans.property.SimpleStringProperty;
  
  public class Recipe {
     private final SimpleStringProperty Name = new SimpleStringProperty("");
  
     public Recipe() {
          this("");
      }
  
      public Recipe(String recipeName) {
          setRecipeName(recipeName);
  
      }
  
      public String getRecipeName() {
          return Name.get();
      }
  
      public void setRecipeName(String rName) {
          Name.set(rName);
      }
  
  }
  </code></pre>
  
  <p>Into this FXML view file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;?import javafx.scene.control.TableColumn?&gt;
  &lt;?import javafx.scene.control.TableView?&gt;
  &lt;?import javafx.scene.layout.AnchorPane?&gt;
  &lt;?import javafx.scene.control.cell.*?&gt;
  &lt;?import javafx.collections.*?&gt;
  &lt;?import fxmltableview.*?&gt;
  &lt;?import java.lang.String?&gt;
  &lt;?import application.Recipe ?&gt;
  
  
  &lt;AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1"&gt;
     &lt;children&gt;
        &lt;TableView prefHeight="400.0" prefWidth="600.0"&gt;
          &lt;columns&gt;
            &lt;TableColumn prefWidth="599.0" text="Column One" &gt;
            &lt;cellValueFactory&gt;&lt;PropertyValueFactory property="Name" /&gt;
           &lt;/cellValueFactory&gt;
            &lt;/TableColumn&gt;
          &lt;/columns&gt;
          &lt;items&gt;
      &lt;FXCollections fx:factory="observableArrayList"&gt;
          &lt;Recipe Name="Test Name"/&gt;
      &lt;/FXCollections&gt;
          &lt;/items&gt;
        &lt;/TableView&gt;
     &lt;/children&gt;
  &lt;/AnchorPane&gt;
  </code></pre>
  
  <p>I keep getting an error on the  line. Any help is greatly appreciated.</p>