This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a curios problem with a JTree.
When I use my own extended class for the TreeModel the Tree would not be filled, if I use the DefaultTreeModel directly it works.
What do I make wrong with my own TreeModel?
Call in the UI Class:
This don' t work:
I thought that when I extend my class with the DefaultTreeModel I will Inheritance all the function of superClass. Did I miss something?
ups this was a copy and past failure, in eclipse my class is correct, I edit the posting above.
There is no failure message, just a empty JTree, when I use childcount in my TreeViewModel, it shows me an count of 1, but nothing in the JTree,