How do I extend IconNodeWidget class in java?

I have to create a GUI that uses the Visual Library. I have a scene where users can place nodes and edit some probiotics. Then I want to keep every node scroll. For this I am trying to extend the IconNodeWidget class to add some elements to the nodes (let's call them X and Y). When the user selects a node and selects modifiers, I have to show these values. The problem is that I cannot extend the IconNodeWidget class. How can i do this?

0


a source to share


1 answer


I don't know the specifics of the GUI library being used, but I would recommend considering the MVC pattern.



The properties of the widget (aka model) will be stored in a separate tree, and the view will be Visual Library objects.

0


a source







All Articles