Recent posts by Christopher Sheridan

I am trying to learn how to utilize predicates in Java. I have this in my init() method to set everything up. When something is typed in the search/filter TextField ("filterInput"), nothing changes. What am I doing wrong?

I have methods written to handle the actions for check boxes. This is as far as I've gotten:

When checking a certain category of plant, the ones that are not relevant are supposed to disappear from view. When they are un-checked, they reappear. The problem is that I have to initially click a CheckBox twice to begin the process. The other boxes and buttons need to disappear on the first click. It's almost like the annoying mistake we make sometimes with the Scanner class and having to fire an extra input.nextLine() so the first input is not consumed. At least that's what it reminds me of.

Can someone help me out? I don't understand why this is happening.

Note: I included two screenshots of the GUI so you know what I'm doing.

I know this post is old, but I did a google search for "good book for JavaFX", and stumbled across this post. I'm a member of the ranch (fairly new but I love the community), and for some reason it was awesome to see an actual programming author on here. Sorry for necrobumping this. Haha.

Now that I'm sitting in front of my machine and looking at my code, that makes complete sense. I noticed the two clicks originally with my Save button, and the erroneous lambda expression in my buttonClick() method.

I'm looking forward to making richer UI's.

One thing I realized with the setting of the ListView is that I struggle greatly with constructors and parameters, even if it's coding up a console-only app. I just need to get a better grasp on them. I would've never thought to next the new VBox inside the new Scene, at least not at this point in my learning.

Despite my error, I'm happy to know that I made what I made through reading and trial and error up until those points. Thank you for your help.

I understood everything except what you mentioned about stage1.setScene (scene1). Are you saying I need to remove it from the lambda expression and put it in curly braces underneath the expression instead? Or something completely different?