• Post Reply Bookmark Topic Watch Topic
  • New Topic

Custom TreeItem class killed my drag and drop

 
MaxB Java
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

This is my first post here so please bear with me if I am asking something completely stupid (also I am pretty new to Java development and trying to teach it myself since a couple of weeks ...

So here is my problem: I have a TreeView object with TreeItems and added some drag and drop functionality to the items with this code



Now I want to change the appearance of the TreeItem objects (displaying more information than just the value) and created a new class that extends the TreeItem class



I am applying that new TreeItem class to the buildTree() class by changing the initial part to



but now the @Override produces this error message



If I comment the @Override out and run the application, everything is fine and the TreeItems get rendered like I want to. But now the drag & drop no longer works. To be honest, I am not sure what exactly killed it ...
Thanks for every hint where to look at and if somebody could explain the error message to me, that would also be highly appreciated!

Max
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!