JavaFX Java GUI Tutorial - 16 - TreeView

  Рет қаралды 100,727

thenewboston

thenewboston

Күн бұрын

Пікірлер: 45
@nicklandreth2527
@nicklandreth2527 4 жыл бұрын
Bucky you are teaching me my entire bachelors degree as far as coding goes. Who needs time with teachers when I have KZbin.
@wesosdequeso8360
@wesosdequeso8360 7 жыл бұрын
You kinda saved me, i always fall asleep reading tutorial code out there.
@orkunerbil7473
@orkunerbil7473 9 жыл бұрын
"Alright guys" is the first thing he says in every video :D
@nicklandreth2527
@nicklandreth2527 4 жыл бұрын
He called me a hoss once. I took great offense.
@kennyPAGC
@kennyPAGC 8 жыл бұрын
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-rt2rk
@KaranSingh-rt2rk 7 жыл бұрын
if he sets setShowRoot(true) , then the selected property i.e if he selects root then the value will be null
@AbeVLOG
@AbeVLOG 6 жыл бұрын
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
@alihatami3303
@alihatami3303 4 жыл бұрын
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.
@JohnForbes
@JohnForbes 5 жыл бұрын
@13:33 Why was Bucky selected by default? I can't see where that happened in the code.
@samybenothman7678
@samybenothman7678 4 жыл бұрын
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")
@rob1grie
@rob1grie 6 жыл бұрын
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.
@eyasuemana6946
@eyasuemana6946 5 жыл бұрын
THANKS MAN!
@pyrofeaks
@pyrofeaks 8 жыл бұрын
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 )=
@vikask3357
@vikask3357 6 жыл бұрын
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.
@joew9250
@joew9250 3 жыл бұрын
So how can I find the source codes on your github page
@chaosLord2105
@chaosLord2105 8 жыл бұрын
awesome videos!
@chaitanyamodela4227
@chaitanyamodela4227 5 жыл бұрын
Hi.. Can you please let me know how to search or filter "treeitem" in "treeview" in "textfield keyreleased event" using javafx application.
@sebastiansporek3891
@sebastiansporek3891 8 жыл бұрын
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-mb8co
@name-mb8co 8 жыл бұрын
You didnt bit by bit else it would work. Maybe check where you said to select it and move it maybr
@sebastiansporek3891
@sebastiansporek3891 8 жыл бұрын
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-mb8co
@name-mb8co 8 жыл бұрын
Sebastian Sporek k cool
@asifhaciyev8058
@asifhaciyev8058 5 жыл бұрын
@@sebastiansporek3891 It is selected but value of it is not printed when program starts. How to solve it?
@sihleeundefined1208
@sihleeundefined1208 3 жыл бұрын
How do we set lambda events for treeview?Please help🙏🏿🙏🏿🙏🏿
@theblitzkrieg7820
@theblitzkrieg7820 7 жыл бұрын
Can we resize the Treeitem to certain height , width ?
@jongmagee
@jongmagee 5 жыл бұрын
Does anyone know how to get the tree input using the button???
@steveburrus5526
@steveburrus5526 9 жыл бұрын
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?
@chaosLord2105
@chaosLord2105 8 жыл бұрын
did you get it working?
@stathisstathopoulos9007
@stathisstathopoulos9007 7 жыл бұрын
setExpanded hits **Undefiend reference
@florent9555
@florent9555 5 жыл бұрын
When i Click on the Treeitems i get this as an ouput: TreeItem [ value: youtube ] for instance. Does someone know why?
@florent9555
@florent9555 5 жыл бұрын
Its newValue.getValue() dumbass
@florent9555
@florent9555 5 жыл бұрын
ty dude
@cindyf.lamontagne1106
@cindyf.lamontagne1106 4 жыл бұрын
@@florent9555 did this man just respond to himself
@ДиогенСинопский-т4с
@ДиогенСинопский-т4с 3 жыл бұрын
Because when you declared TreeView you've forgotten . Your delcare is TreeView tree, but correct is TreeView tree;
@ivanpantic6701
@ivanpantic6701 3 жыл бұрын
Does anyone have code for this tutorial?
@purple_gemini
@purple_gemini Жыл бұрын
3:21 root.setExpanded(true); I think this method no longer exists now please help
@purple_gemini
@purple_gemini Жыл бұрын
nevermind my mistake!
@shashwatkhanna6036
@shashwatkhanna6036 9 жыл бұрын
Bucky is this your real name? I Guess its Greg. Pls Reply
@ECCOWAFL
@ECCOWAFL 9 жыл бұрын
shashwat khanna i think it is. Bucky Roberts
@andrewelliott5516
@andrewelliott5516 7 жыл бұрын
Shashwat Khanna itis Greg, and you did know that, stop trying to act smart lol
@IOSAppCrazy
@IOSAppCrazy 6 жыл бұрын
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-pv7ug
@ap-pv7ug 4 жыл бұрын
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.
@alexcollier9152
@alexcollier9152 9 жыл бұрын
1st
@isaact4315
@isaact4315 7 жыл бұрын
Great videos but could you please say SSSSSSTrings in place of saying SHHHHHHHtrings? Thanks :)
@martingaens2073
@martingaens2073 8 жыл бұрын
omg u r so weird. 14:29
JavaFX Java GUI Tutorial - 17 - Introduction to TableView
5:31
thenewboston
Рет қаралды 96 М.
Java GUI Tutorial - Make a GUI in 13 Minutes #99
12:58
Alex Lee
Рет қаралды 1,2 МЛН
Ouch.. 🤕⚽️
00:25
Celine Dept
Рет қаралды 22 МЛН
JavaFX Java GUI Tutorial - 22 - Handling Menu Clicks
9:10
thenewboston
Рет қаралды 76 М.
All useEffect Mistakes Every Junior React Developer Makes
22:23
JavaFX Java GUI Tutorial - 11 - CheckBox
7:38
thenewboston
Рет қаралды 132 М.
JavaFX TreeView 🌳
10:02
Bro Code
Рет қаралды 20 М.
How to use TreeView in JavaFX ? | JavaFX TreeView Explained
15:50
Think Fast, Talk Smart: Communication Techniques
58:20
Stanford Graduate School of Business
Рет қаралды 41 МЛН
JavaFX Java GUI Tutorial - 19 - Editable Tables
7:53
thenewboston
Рет қаралды 98 М.
JavaFX Java GUI Tutorial - 18 - Simple TableView
12:04
thenewboston
Рет қаралды 193 М.
Евгений Борисов - Spring-потрошитель, часть 1
1:04:27
JPoint, Joker и JUG ru
Рет қаралды 522 М.
JavaFX Java GUI Tutorial - 21 - Making Menus
6:18
thenewboston
Рет қаралды 91 М.