O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Beginning NetBeans IDE: for Java Developers

Book Description

Beginning NetBeans IDE is your authoritative guide for getting started learning and using the free and open source NetBeans IDE. Written by Geertjan Wielenga, who has worked on the NetBeans Team since 2004, it shows you what the IDE is all about and how to use it with real-world case studies built from the ground up as you learn all about the IDE.

In this book, you get a tour of the various, essential, and key NetBeans features, including a range of wizards and plug-ins. Then, you start building a more complex Java EE-based application using Maven with the NetBeans IDE. And, you learn how to improve that application by exploring the NetBeans refactoring, testing, debugging, and profiling tools.

After reading and using this guide, you'll come away with a working case study and many insights into how to understand and optimally make use of NetBeans IDE.

Table of Contents

  1. Cover
  2. Title
  3. Copyright
  4. Dedication
  5. Contents at a Glance
  6. Contents
  7. About the Author
  8. About the Techincal reviewer
  9. About the Illustrator
  10. Acknowledgments
  11. Foreword
  12. Preface
  13. Introduction
  14. Chapter 1: Installing and Setting Up
    1. What Is NetBeans IDE?
    2. Advantages of the IDE
    3. Downloading the IDE
    4. Installing the IDE
    5. Using Mac OSX
  15. Chapter 2: Getting Started
    1. Hello World
    2. Exploring the IDE
      1. Project Views
      2. File Views
      3. Hierarchy Views
      4. Service Views
      5. Supporting Views
  16. Chapter 3: Java Editor
    1. Overview
    2. Getting Started
      1. Opening a File
      2. Opening a File Without a Project
      3. Reconfiguring the Source Editor
      4. Changing Keyboard Shortcuts, Fonts, and Colors
      5. Comparing Differences Between Two Files
    3. Typing
      1. Finishing and Concatenating
      2. Matching Other Words in a File
      3. Text Selection Shortcuts
      4. Macros
      5. Code Snippets
    4. Code Completion
      1. Code Completion Tricks
      2. Customizing Settings for Code Completion
    5. Templates
      1. Code Templates
      2. File Templates
    6. Java Hints
    7. Java Members
      1. Implements and Overrides
      2. JavaBeans
      3. Imports
      4. Javadoc
    8. Formatting
      1. Indenting Blocks of Code Manually
      2. Changing Formatting Rules
    9. Navigation
      1. Navigating Within the Current Java File
      2. Navigating from the Source Editor
    10. Search and Replace
      1. Finding Usages
      2. Renaming
      3. Finding
      4. Replacing
      5. Other File Searches
    11. Tracking Notes
      1. Adding, Removing, and Changing Action Item Tags
      2. Filtering Action Items
  17. Chapter 4: Using Wizards and Plugins
    1. Overview
    2. General
      1. Application Structure
      2. Project Groups
      3. Viewing Java Packages
      4. Comprehensive Service Integration
      5. Plugin Manager
    3. Java SE
    4. Java EE
    5. Embedded
    6. Cloud
  18. Chapter 5: Putting the Pieces Together
    1. Setting Up
    2. Creating the Java EE Server Application
    3. Generating JPA Entity Classes
    4. Exposing Data to Frontend Clients
      1. Generate JSF Pages from Entity Classes
      2. Generate RESTful Web Services from Entity Classes
      3. Generate RESTful JavaScript Clients from RESTful Web Services
    5. Deploying the Application
  19. Chapter 6: Analysis and Refactoring
    1. Analysis
    2. Manual Refactoring
      1. Deleting Code Safely
      2. Changing a Method’s Signature
      3. Encapsulating a Field
      4. Moving a Class to a Different Package
      5. Moving Class Members to Other Classes
      6. Creating a Method from Existing Statements
      7. Creating an Interface from Existing Methods
      8. Extracting a Superclass to Consolidate Common Methods
      9. Changing References to Use a Supertype
      10. Unnesting Classes
      11. Quick Access to Keyboard Shortcuts
  20. Chapter 7: Testing and Code Quality
    1. JUnit and TestNG
    2. Selenium
    3. Arquillian
    4. Java Code Coverage
    5. SonarQube
  21. Chapter 8: Debugging
    1. Getting Started
    2. Debugger Windows
    3. Steps
      1. Executing Code Line By Line
      2. Executing a Method Without Stepping Into It
      3. Resuming Execution Through the End of a Method
      4. Continuing to the Next Breakpoint
      5. Continuing to the Cursor Position
      6. Stepping Into the JDK and Other Libraries
      7. Limiting the Classes that You Can Step Into for a Library
      8. Backing Up from a Method to its Call
    4. Breakpoints
      1. Setting Breakpoints
      2. Managing Breakpoints
    5. Watches
    6. Threads
      1. Switching the Currently Monitored Thread
      2. Suspending and Resuming Threads
      3. Suspending a Single Thread at a Breakpoint
      4. Isolating Debugging to a Single Thread
      5. Identifying Deadlocks
    7. Code Changes
    8. GUI Snapshot
  22. Chapter 9: Profiling and Tuning
    1. Performance Tuning
      1. Coding for Performance
      2. Tuning the Environment
    2. Planning for Capacity
      1. Getting Started with the Profiler
      2. Basic Profiling Terminology
      3. Telemetry
      4. Methods
      5. Objects
      6. Threads
      7. Lock Contention
      8. Attaching the Profiler to External Processes
      9. Getting Started with Apache JMeter
      10. Using Apache JMeter
  23. Chapter 10: Versioning
    1. Setting Up Git in the IDE
    2. Initializing a Git Repository
    3. Cloning a Git Repository
    4. Adding Files to a Git Repository
    5. Editing Files
      1. Viewing Changes in the Source Editor
      2. Viewing File Status Information
      3. Comparing File Revisions
      4. Reverting Changes
    6. Committing Sources to a Repository
    7. Working with Branches
      1. Creating
      2. Checking Out
      3. Merging
      4. Deleting
    8. Working with Remote Repositories
      1. Fetching
      2. Pulling
      3. Pushing
  24. Index