Visual Library – Show Properties of selected Widgets

NetBeans Visual Library is really great for creating interactive Graphics, especially for graph like structures. In my JBox2D Editor I’m using it as a visual designer for Box2D Worlds. If you want to display properties of the domain objects represented by the Widgets in the Properties View, you need to do a bit of wiring though.

The tough part is, that the Properties View listens for selected Nodes, so we need to create some Nodes representing the selected objects to expose their properties. And we need to put them in our TopComponents Lookup. Here’s a little trick how you can simplify the wiring, by letting the ExplorerManager do the heavy lifting:

The project is available on Github. Enjoy!

 

 

Dieser Eintrag wurde in netbeans geschrieben. Link merken.

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

*

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>