TaT NetBeansOutputWindow

Using the output window in NetBeans

by Hubert A. Klein Ikkink; first published in blog, blog and blog

Clearing the output window

The output window in NetBeans contains the output of several processes. For example when we run Maven goals the output of Maven is displayed in the output window. After a while the output window can contain a lot of information. To get a clean slate we can remove all the output with a simple mouse click or shortcut.

In the output window we must right-click with the mouse and then select Clear from the pop-up window. Or we can use the shortcut Ctrl+L (in Windows) to clear the contents of the output window.

Image:netbeans-output-clear_TaT_NetBeansOutputWindow.png

Finding text

The output window of NetBeans contains the output of several processes in NetBeans. For example if we run Tomcat from NetBeans the output of Tomcat is displayed in the output window. To find information in the output window can become cumbersome when there is a lot of information available.

We can search in the output window by right-clicking with the mouse and selecting the Find... option or using the shortcut Ctrl+F (in Windows). A new dialog window is opened and we can type the text we want to find. NetBeans will search in the output window for the text and highlight the text if it is found.

Image:netbeans-output-find_TaT_NetBeansOutputWindow.png

Saving the contents

A lot of processes in NetBeans display the output in the output window. The output window can be a source for debugging code by looking at for example logging statements. We can save the contents of the output window to a file. We right-click with the mouse and select the Save As... option or press the shortcut Ctrl+S (in Windows). We see a dialog where we can select the filename for the output. Once we press the OK button the contents of the output window is saved to the file.

Image:netbeans-output-saveas_TaT_NetBeansOutputWindow.png
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo