Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic