Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans - is it possible to see project source folders in a tree (hierarchical) view, rather then a flat view?

I have some huge NetBeans projects with many packages, sub-packages, sub-sub-packages .etc, and it gets very confusing seeing all these package folders in the flat layout that NetBeans shows.. e.g. a.b.c.d.e.f.g , a.b.c.d.d.e.f.h .etc .etc

Is it possible to have a hierarchical directory (tree?) view, like in IntelliJ IDEA?

Thanks, Jose

like image 965
José Avatar asked Feb 08 '12 14:02

José


People also ask

How do I show folders in NetBeans?

Right-click the module project, choose New > File/Folder and choose Window Component from the NetBeans Module Development category. Click Next. Choose editor in the drop-down list and select Open on Application Start.

How do I view project files in NetBeans?

In NetBeans 8.2 Go to Window->Navigator in menu bar or press Ctrl+7 and select Projects it will open a folder as work space .

How do I open a project folder in NetBeans?

To open a local file/folder (as a file-explorer) in Netbeans, in the top menu-bar goto: Window -> Favourites (or press Ctrl+3), this will open 'Favourites' pane, here you can open files or folders (in Linux, by default you will see your 'home' directory).

Why my project is not showing in NetBeans?

The root cause is that the java version was upgraded to 11 along with the OS. You can fix this by doing one of the following: Change the default jdk/jre version in the OS to java 8 . Change the jdk version to 8 in Netbeans by changing its configuration (etc/netbeans.


1 Answers

In the Projects window just invoke the context menu by right-clicking on any empty space then click View Java Packages as > Tree.

like image 73
JRL Avatar answered Sep 20 '22 13:09

JRL