The Navigator window provides a compact view of the file that is currently selected and can simplify navigation between different parts of the file. The Navigator window displays an organized view of the elements in a file when you select the file in the Projects window, the Files window or the source editor. You can use the Navigator window to navigate many file types, including Java, HTML, PHP, XML and CSS files. For some file types you can use a drop-down list at the top of the window to switch between views.
By default, the Navigator window opens in the lower left corner of the IDE.
The information and options that are visible in the Navigator will depend upon the type of file that is selected.
Language | Description |
---|---|
Java |
For Java files, you can see a list of constructors, methods, and fields. When a Java file is selected, a drop-down list appears at the top of the Navigator window to enable you to choose between the following two views: |
Members view |
Select this option in the dropdown list to view an alphabetical listing of the selected source file's members (constructors, methods, and fields). |
Bean Patterns |
Select this option in the dropdown list to limit the elements that are displayed to the class's bean properties and event listeners. |
Open Javadoc Window |
Click to open the Javadoc window with documentation for the selected member. |
HTML |
For HTML files you can see a tree that displays nodes for elements in the selected document. |
JavaScript |
For JavaScript files you can see a tree that displays nodes for elements in the selected document such as functions and fields. |
PHP |
For PHP files, you see a list of fields, methods, and constructors. PHP code outside of files is not displayed in the Navigator. |
XML |
For XML files, the Navigator view displays a tree of elements. |
C/C++ |
For C/C++ files you can see a tree that displays nodes for elements in the selected document. |
Commands are available in a popup menu when you right-click a node or element in the Navigator window. Some commands are unavailable for some types of files. You can invoke the filters from the menu or by clicking the icon in the filter bar at the bottom of the window. You can expand and collapse the filter bar by clicking the arrow at the bottom of the window.
Command | Description |
---|---|
Go To Source |
Opens the class in the Source Editor and places the insertion point at the beginning of the element that the node represents. |
Sort By Name |
Displays the members in alphabetical order. |
Sort By Source |
Displays the members in the order in which they appear in the code. |
Filters |
Opens a submenu that enables you to select some common filters for the types of members to display. You can select any combination of the following filters: |
Show Inherited Members |
Displays members that come from classes that the current class extends. |
Show Fields |
Displays the class's fields. |
Show Static Members |
Displays static fields and methods. |
Show Non Public Members |
Displays members that do not provide public access. |
Show Inner Classes |
|
Show Attributes |
Toggles the display of the attributes of the elements in the window. (XML only) |
Show Content |
Toggles the display of the text content of the elements in the window. (XML only) |
Show in POM |
Displays the line that contains the selected element in the source editor. (POM only) |
Execute Goal |
Executes selected goal. (Maven projects only) |
Execute Goal with Modifiers |
Opens Run Maven dialog box that enables you to modify the selected goal before you run it. (Maven projects only) |
Related Topics
Developing Applications with NetBeans IDE,
Developing Applications with NetBeans IDE,
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |