Tim Boudreau is a noted technology consultant, evangelist and author. While perhaps most broadly known for his leadership on Sun Microsystems’ NetBeans, those who’ve worked with Tim remark most on his technical chops, passion for a great challenge and rare gift of great communication. And, as a former troubadour, he’s pretty tough when it comes to bad 70s rock lyrics too. A real renaissance programmer. Tim has posted 25 posts at DZone. You can read more from them at their website. View Full User Profile

A New Class Visualization Module for NetBeans

  • submit to reddit

Last week I wrote a little module that uses the NetBeans Visual Library and the Javac Tree API to create a graph of the contents of a Java file, showing dependencies between class members. It's now available on the NetBeans daily build update center - if you're running a daily build of NetBeans, just go to Tools | Plugins and download Graphical Class Viewer.

My question is, would anybody actually find this useful? It was mostly an experiment to get more fluent with a couple of APIs I need to know well - but it seems like it could be handy if you're going to edit a class you didn't write and want to see where the action is - or if you've got a bunch of encapsulated fields and want to quickly see if anything is not using the getters and setters.

What it does:
  • Shows a graph (see screenshot below)
  • If you hover the mouse over, say, a method, then the path to things that method calls/uses will be shown in red, and things that call that method are shown in blue
  • You can click the arrow button on the widget for any class member and see its source code

Feel free to try it out and let me know if you think it's something worth putting more work into.

Also, if anyone knows of any speedy and good hub-and-spoke or other layout algorithms for the case where you have n nodes each of which can have up to n-1 connections to other nodes, feel free to let me know - what it does now is less than optimal. At some point I may think through the geometry to do it nicely, but I'm not sure when.

Somewhere in Antarctica
gcv1.jpg72.65 KB
Average: 4 (2 votes)
Published at DZone with permission of its author, Tim Boudreau.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)


Raphael Miranda replied on Thu, 2009/02/26 - 11:40am

Pretty cool work Tim. Does it integrate with grails domain? Can you alter your domain(relationships, navigation, etc ) and reflect them automatically in your code?

Matt Coleman replied on Wed, 2013/01/16 - 1:13am

any newer updated modules NB?

sell sheet design 

Ray Naa replied on Mon, 2014/09/22 - 6:06am


Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!THANKS!!!!!!
builders in surat

Ray Naa replied on Mon, 2014/09/29 - 5:28pm


I found this housing website,OC Housing News . While looking into this page, I came across a super mortgage finance book, Home Finance Guide. The news reporting and analysis on this site is of very high quality, the news stories are entertaining and insightful, and the many user guides are extremely valuable. I recommend visiting this website to take in the great resources available.
Housing Market News

Ray Naa replied on Tue, 2014/09/30 - 12:51pm


I unearthed this housing news website, <a href="http://ochousingnews.com/">OC Housing News</a>. The analysis of real estate issues on this website has great depth, the news coverage and cartoons are great, and the many user guides are extremely valuable. I urge exploring this website to survey its many features.
OC Housing News

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.