Reputation: 22573
I'm fairly new to Netbeans Platform. Here is what I'm trying to do, I have two windows, one is the main window which is 'editor' and the second one is an 'explorer' window with a JTree component in it. Every time I add a new Item to my database, I want to add a node to the JTree component in explorer window ! I was trying to find a way to call an updater method from the main window, but so far no luck ! both windows are located in the same module and the same package ! is there a way I can do that ?
Upvotes: 2
Views: 972
Reputation: 38152
In NetBeans Platform applications you use the Lookup API do communicate between TopComponents/ modules.
http://netbeans.dzone.com/news/top-10-netbeans-apis-part-2
http://netbeans.org/kb/trails/platform.html
I also recommend to read a NetBeans Platform book to get the basics.
Upvotes: 2