Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Build a JavaFX Application Build a Pomodoro App Properties and More

Lewis Cowles
Lewis Cowles
74,902 Points

firstName _____________(); ???

So in the quiz it says

Fill in the blank(s) below:

If I had a JavaFX property that I wanted to bind that stored a first name.  I would create the following methods:

getFirstName();
setFirstName();
firstName ___________();

All I can think of is ` = SimpleStringProperty`, but it tells me I am wrong. WTH?

2 Answers

Lewis Cowles
Lewis Cowles
74,902 Points

Had a Blonde moment...

Property is the answer, looking at IntelliJ and using Alt+Insert puts it in-between the getter and setter, at least for me. it's at 02:48 in the video...

ah this makes sense now. the firstName is variable name in the StringProperty