Configuring the Generated Customer.java File

Modify the Customer.java file so that the KeywordFilterField displays the data properly.

  1. Open the Java perspective:
    1. From the main menu select Window > Open Perspective > Other.
    2. Select Java and click OK.
  2. In Package Explorer, expand the SUP101Sample\src\SUP101 folder.
  3. Open the Customer.java file, and add this code to the end of the file, after the line /** End code region: JSON methods **/:
    public String toString()
        {
            return getFname() + " " + getLname();
        }
  4. Save the Customer.java file.