May 26, 2008

Navigating between documents in NetBeans

When we work on a project, we usually have a couple of documents open. To quickly switch between documents we can click on the arrow button at the top right of the editor window. This will open a popup menu with a list of all open documents. We can click on the document we want open and the editor will open that document.

Another way to switch is by pressing the Ctrl+TAB keys. In the editor we get a popup window with all open documents. With TAB and Shift+TAB we can highlight a document. When we release the TAB key the highlighted document is shown in the editor.

We can also press Shift+F4 to get a dialog window with all documents. Here we can go to a selected document and open it in the editor. We can also close documents. At the bottom of the dialog window we see a textfield with the complete filename of a document.