I know that this question has been asked before, but I did not get the right solution.
I read about the drafts, but it was just the opposite of what I want, i.e. JTable inside JTree I want to display data in JTable, but it is stored as different groups, so these groups
are JTree nodes, when I use one group (node), JTable of this group is shown.
I looked at this article in oracle: Creating TreeTables in Swing: Part 1
It was pretty old and didn't work on my version of java (I don’t know why!), So I went through the next part of TreeTable: Creating TreeTables in Swing: Part 2
All the code was relatively new, because it used "javax.swing" instead of "com.sun.java.swing", but the problem I encountered was that there was one file with the name "
" FileSystemModel2.java ", it was changed from the previous version, so I can’t work
with the old one. There is some method added to the new “FileSystemModel.java". How to report an error about this missing file, or if you have a different approach, please let me know.
What I want to achieve is shown in the image below:

This image was from "LastPass", and I want to create my own password manager as my project.
So, please help me with this, I am so close, but so far I can’t move on.