Is it possible to display the tree structure of Java code?

I am new to Java. I am trying to figure out how this code works . It seems to me that it would be very useful if at first I got the general structure of the code (which methods exist and how they are interconnected). For example, I see that "main" uses "createAndShowGUI", which in turn uses "addComponentsToPane" and so on. Thus, the code looks like a tree structure, and it would be nice if I could visualize this structure. Is there any software that can do this. Or, more precisely, can NetBeans do this?

+6
source share
7 answers

Not sure about Netbeans, but in eclipse you can right-click on a method and select "open call hierarchy" to get a tree view of the methods that invoke the method you selected, and an icon at the top of the view to cancel it (" Show the Callee hierarchy "), which pretty much does what you want (except that only one method is shown at a time).

+4
source

NetBeans, Call Hierarchy. . , . . , . , . , .

+5

eclipse ast view. Netbeans - .

+1

Mac OS X, Xcode "Quick " , . KeyEventDemo model

+1

- eclipse. .

0

NetBeans Window > Navigator. , -

enter image description here

0
-1

All Articles