Bucky you are teaching me my entire bachelors degree as far as coding goes. Who needs time with teachers when I have KZbin.
@wesosdequeso83607 жыл бұрын
You kinda saved me, i always fall asleep reading tutorial code out there.
@orkunerbil74739 жыл бұрын
"Alright guys" is the first thing he says in every video :D
@nicklandreth25274 жыл бұрын
He called me a hoss once. I took great offense.
@kennyPAGC8 жыл бұрын
There's no need for that null check since while it's true the initial value for the selected property is null, the moment the listener is triggered is when an item is selected, therefore now it has a value, so it's never going to be null.
@KaranSingh-rt2rk7 жыл бұрын
if he sets setShowRoot(true) , then the selected property i.e if he selects root then the value will be null
@AbeVLOG6 жыл бұрын
The root won't be null, it exists, but root.getValue() would be null (it has no String value) so the if should be "if (newValue.getValue() != null)" in that case
@alihatami33034 жыл бұрын
Hello, I learned a lot from this playlist and I want to ask if you give permission to me to create the same tutorial based on your tutorial in my language or not.
@JohnForbes5 жыл бұрын
@13:33 Why was Bucky selected by default? I can't see where that happened in the code.
@samybenothman76784 жыл бұрын
Use : tree.getSelectionModel().select(0); (0 is the index of the element in your tree, if you put 1 you will have selected by default "thenewboston")
@rob1grie6 жыл бұрын
Ok, 3 years after the fact, but this is knowledge to carry with you for the rest of your life :-) .... Ginger root! Slice up a chunk about an inch or so long, boil it in water for "a while", sweeten it up with honey. It's good for what ails ya.
@eyasuemana69465 жыл бұрын
THANKS MAN!
@pyrofeaks8 жыл бұрын
I really hope you can Help me. I create a Programm and I use a directory Chooser and (I want) to use a treeview to display the direcotries and their Input in A treeview. To create a Treeview with your own items is one thing. But how i can connect my diretorychooser with a tree view. I wrote the DirectoryChooser and the Path will be written in the Textbox, but HOW (?) will the last part of the Part or directory used and shown in the Treeview? damn i Hope you could understand my Problem in some points )=
@vikask33576 жыл бұрын
Hi need help I want to drag and drop treeitem just like as in scene builder. Have explored almost all tutorial but no got success.
@joew92503 жыл бұрын
So how can I find the source codes on your github page
@chaosLord21058 жыл бұрын
awesome videos!
@chaitanyamodela42275 жыл бұрын
Hi.. Can you please let me know how to search or filter "treeitem" in "treeview" in "textfield keyreleased event" using javafx application.
@sebastiansporek38918 жыл бұрын
I have a question. In your example when you start app treeView, branch is selected I mean Bucky is selected( blue color). I copy your example "bit by bit " .... :) and on my computer after compile app, I haven't seen any selected branch. Why? I have only blue frame on Bucky branch.
@name-mb8co8 жыл бұрын
You didnt bit by bit else it would work. Maybe check where you said to select it and move it maybr
@sebastiansporek38918 жыл бұрын
I've solved my problem, I used - tree.getSelectionModel().selectFirst(); - and then Bucky node in the Tree has highlighted. Your examples are very useful. thx
@name-mb8co8 жыл бұрын
Sebastian Sporek k cool
@asifhaciyev80585 жыл бұрын
@@sebastiansporek3891 It is selected but value of it is not printed when program starts. How to solve it?
@sihleeundefined12083 жыл бұрын
How do we set lambda events for treeview?Please help🙏🏿🙏🏿🙏🏿
@theblitzkrieg78207 жыл бұрын
Can we resize the Treeitem to certain height , width ?
@jongmagee5 жыл бұрын
Does anyone know how to get the tree input using the button???
@steveburrus55269 жыл бұрын
Bucky I am sorry b ut I am haVinG problems with just starting out using JavaFX on IntelliJ Idea! I am mainly not getting it rigjt with setting the correct Project path. can u pls help me with this?
@chaosLord21058 жыл бұрын
did you get it working?
@stathisstathopoulos90077 жыл бұрын
setExpanded hits **Undefiend reference
@florent95555 жыл бұрын
When i Click on the Treeitems i get this as an ouput: TreeItem [ value: youtube ] for instance. Does someone know why?
@florent95555 жыл бұрын
Its newValue.getValue() dumbass
@florent95555 жыл бұрын
ty dude
@cindyf.lamontagne11064 жыл бұрын
@@florent9555 did this man just respond to himself
@ДиогенСинопский-т4с3 жыл бұрын
Because when you declared TreeView you've forgotten . Your delcare is TreeView tree, but correct is TreeView tree;
@ivanpantic67013 жыл бұрын
Does anyone have code for this tutorial?
@purple_gemini Жыл бұрын
3:21 root.setExpanded(true); I think this method no longer exists now please help
@purple_gemini Жыл бұрын
nevermind my mistake!
@shashwatkhanna60369 жыл бұрын
Bucky is this your real name? I Guess its Greg. Pls Reply
@ECCOWAFL9 жыл бұрын
shashwat khanna i think it is. Bucky Roberts
@andrewelliott55167 жыл бұрын
Shashwat Khanna itis Greg, and you did know that, stop trying to act smart lol
@IOSAppCrazy6 жыл бұрын
does anybody have resources to creating listeners like here but without lambdas? i think it is a very poor idea to teach something the "easy way" without showing exactly what is actually happening.
@ap-pv7ug4 жыл бұрын
Listeners take an EventHandler as a parameter. Eventhandler.java is annotated as a functional interface, which means that it is an interface with only one method. So, when you pass an EventHandler instance as the parameter, you are really just defining which of the handle methods you want the item to use. Because that is the only purpose of the parameter, using a lambda expression just lets you pass the handle method itself as a parameter without the overhead of making an entire class for the purpose of passing it as a parameter. That isn't the "easy way", it was specifically designed to be used that way. If you insist, you can pass any class as a parameter as long as that class implements EventHandler.java, but that only makes sense if you expect a lot of items to use the same handle method, which is probably bad design anyway.
@alexcollier91529 жыл бұрын
1st
@isaact43157 жыл бұрын
Great videos but could you please say SSSSSSTrings in place of saying SHHHHHHHtrings? Thanks :)