Netbeans[1] Developing Applications with Netbeans IDE Release 8.2 E74654-01
Total Page:16
File Type:pdf, Size:1020Kb
NetBeans[1] Developing Applications with NetBeans IDE Release 8.2 E74654-01 September 2016 Documentation for NetBeans users that describes how to use the NetBeans IDE and provides detailed information on the functionality available within it. NetBeans Developing Applications with NetBeans IDE, Release 8.2 E74654-01 Copyright © 2013, 2016 Oracle and/or its affiliates. All rights reserved. Primary Author: Alyona Stashkova, Catherine Pickersgill This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable: U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government. This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group. This software or hardware and documentation may provide access to or information about content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services, except as set forth in an applicable agreement between you and Oracle. Contents Preface ............................................................................................................................................................ xxvii Audience.................................................................................................................................................. xxvii Documentation Accessibility................................................................................................................ xxvii Related Documents ................................................................................................................................ xxvii Conventions ............................................................................................................................................ xxvii What's New in This Guide ................................................................................................................... xxix New and Changed Features for Release 8.2 ........................................................................................ xxix 1 Introduction to NetBeans IDE 1.1 About NetBeans IDE .................................................................................................................. 1-1 1.2 NetBeans IDE Developer Resources ........................................................................................ 1-1 2 Working with NetBeans IDE 2.1 About Working with NetBeans IDE......................................................................................... 2-1 2.2 Working with the Options Window ....................................................................................... 2-2 2.2.1 How to Edit IDE Settings.................................................................................................... 2-2 2.2.2 How to Export IDE Settings as Zip Archive.................................................................... 2-2 2.2.3 How to Import IDE Settings............................................................................................... 2-2 2.3 Managing IDE Windows .......................................................................................................... 2-3 2.3.1 How to Move a Window .................................................................................................... 2-4 2.3.2 How to Configure Window Behavior and Appearance ................................................ 2-5 2.3.3 How to Simultaneously Display Multiple Files in the Editor....................................... 2-5 2.3.4 How to Clone the View of a Single File............................................................................ 2-5 2.3.5 How to Manage Open Files................................................................................................ 2-5 2.4 Customizing Toolbars in the IDE ............................................................................................. 2-6 2.4.1 How to Show or Hide a Toolbar........................................................................................ 2-6 2.4.2 How to Move a Toolbar...................................................................................................... 2-6 2.4.3 How to Add a Toolbar Button to a Toolbar..................................................................... 2-6 2.4.4 How to Remove a Button from a Toolbar ........................................................................ 2-6 2.4.5 How to Reorder a Button in a Toolbar ............................................................................. 2-7 2.4.6 How to Change the Size of Toolbar Buttons.................................................................... 2-7 2.4.7 How to Add a New Toolbar to the Main Window......................................................... 2-7 2.5 Working with Keyboard Shortcuts .......................................................................................... 2-7 2.5.1 How to Add or Remove a Keyboard Shortcut for a Menu Command........................ 2-7 iii 2.5.2 How to Customize Keyboard Shortcuts........................................................................... 2-8 2.5.3 How to Switch Between Keyboard Shortcut Sets ........................................................... 2-8 2.5.4 How to Create a New Keyboard Shortcut Set ................................................................. 2-9 2.5.5 How to Use the Default Menu Shortcuts ......................................................................... 2-9 2.5.6 How to Customize Keyboard Shortcuts........................................................................ 2-15 2.6 Understanding the Source Editor Features.......................................................................... 2-15 2.6.1 How to Use the Toolbar................................................................................................... 2-16 2.6.2 How to Use the Left Margin............................................................................................ 2-17 2.6.3 How to Use the Error Stripe............................................................................................ 2-18 2.6.4 How to Use the Status Line............................................................................................. 2-18 2.6.5 How to Use Syntax Coloring and Highlighting........................................................... 2-18 2.6.6 How to Use Insert Mode and Overwrite Mode ........................................................... 2-19 2.6.7 How to Set Editor Options .............................................................................................. 2-19 2.6.8 How to Insert and Highlight Occurrences in the Editor............................................. 2-20 2.6.9 How to Record Macros ...................................................................................................