You are previewing Mastering NetBeans.
O'Reilly logo
Mastering NetBeans

Book Description

Master building complex applications with NetBeans to become more proficient programmers

About This Book

  • Customize NetBeans to fit your unique needs

  • Excel in NetBeans IDE, learning the shortcuts and hidden features to become more productive

  • A comprehensive guide to become more productive at application development using NetBeans IDE

  • Who This Book Is For

    If you are a competent developer who wants to fast-track your application development with NetBeans IDE, then this book is for you. Reasonable knowledge and an understanding of Java programming and NetBeans IDE is assumed.

    What You Will Learn

  • Install NetBeans either from a distribution package or from source code

  • Test, debug, and run production code using the NetBeans IDE

  • Use external services such as PaaS environments and web services

  • Create desktop applications using Swing tools

  • Manage and configure relational databases

  • Build a Java business model and web tiers using Java EE and Spring technologies

  • Explore web services both with XML and RESTful approaches

  • Handle external services such as databases , Maven repositories, and cloud providers

  • Extend NetBeans for those situations where you require more from your IDE

  • In Detail

    With the increasing complexity of software development and the abundance of tools available, learning your IDE in-depth will instantly increase your developer productivity. NetBeans is the only IDE that can be downloaded with Java itself and provides you with many cutting edge features not readily available with many IDEs. The IDE also provides a great set of tools for PHP and C/C++ developers. It is free and open source and has a large community of users and developers around the world.

    This book will teach you to ace NetBeans IDE and make use of it in creating Java business and web services. It will help you to become a proficient developer and use NetBeans for software development. You will learn effective third-party interaction and enable yourself for productive database development.

    Moving on, you will see how to create EJB projects and write effective and efficient web applications. Then you will learn how to use Swing and manage and configure a relational database. By the end of the book, you will be able to handle external services such as databases, Maven repositories, and cloud providers, and extend your NetBeans when you require more from your IDE.

    Style and approach

    An easy-to-follow yet comprehensive guide to help you master the exhaustive range of NetBeans features in order to become more efficient at Java programing. More advanced topics are covered in each chapter, with subjects grouped according to their complexity as well as their utility.

    Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

    Table of Contents

    1. Mastering NetBeans
      1. Table of Contents
      2. Mastering NetBeans
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why subscribe?
          2. Free access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Downloading the color images of this book
          3. Errata
          4. Piracy
          5. Questions
      8. 1. Getting Started with NetBeans
        1. Choosing a download bundle of NetBeans
        2. Downloading and installing NetBeans
          1. Installing other versions of NetBeans
          2. NetBeans user directory
        3. Updating NetBeans to the latest version
        4. Obtaining the NetBeans source code
          1. Downloading a zipped archive of the NetBeans source code
          2. Cloning the NetBeans source code from Mercurial
            1. Cloning specific versions of NetBeans
          3. Cloning the NetBeans source code from within NetBeans
          4. Browsing the NetBeans source code online
        5. Building NetBeans
          1. Building NetBeans via the command line
          2. Building NetBeans from within NetBeans
        6. NetBeans configuration
          1. User and cache directories
          2. NetBeans default options
          3. NetBeans JDK
          4. Additional module clusters
          5. Further options
        7. Summary
      9. 2. Editing Files and Projects
        1. The NetBeans screen layout
          1. The explorer style windows
          2. The Favorites window
          3. The Navigator window
          4. The source code editor window
            1. The History view
          5. The Palette window
          6. The Properties window
          7. The Output window
          8. Window management
        2. Specifying default templates for files
        3. Code templates and code snippets
          1. Inserting code using code templates
          2. Code snippets – the NetBeans Palette window
            1. Deleting palette items – the Palette Manager
            2. Editing palette items
        4. Macro recording and playback
          1. Assigning shortcuts for macro playback
          2. Recording new macros
        5. Splitting windows
        6. Code folds
        7. Project groups
        8. Summary
      10. 3. The NetBeans Developer's Life Cycle
        1. Running applications
        2. Debugging applications
          1. Breakpoints
          2. The Variables debug window
          3. The Watches window
            1. Evaluating expressions
          4. The Call Stack window
          5. The Loaded Classes window
          6. The Sessions window
          7. The Threads window
          8. The Sources window
          9. The Debugging window
            1. Deadlock detection
          10. Analyze Stack Window
          11. Variable formatters
          12. Debugging remote applications
        3. Profiling applications
          1. Application monitoring
          2. Performance monitoring
          3. Memory monitoring
        4. Testing applications
          1. Code coverage
        5. Performing TDD within NetBeans
        6. Summary
      11. 4. Managing Services
        1. Databases
          1. Connecting to Java DB
          2. Connecting to MySQL
          3. Connecting to other databases via JDBC
          4. Managing databases

        2. Web Services
        3. Application Servers
        4. Maven Repositories
        5. Cloud services
        6. Hudson Builders
        7. Task Repositories
        8. Summary
      12. 5. Database Persistence
        1. Java EE Persistence
          1. JPA entities
          2. Creating blank entity classes
            1. Editing the persistence.xml file
          3. Creating entity classes from databases
          4. Creating JPA controllers for entities
          5. Creating database scripts from entity classes
        2. Summary
      13. 6. Desktop Development
        1. Java Swing applications
          1. Creating Swing frames
          2. Designing Swing forms
            1. Anchoring and autoresizing components
            2. Defining properties and events
            3. Editing properties
            4. Editing bindings
              1. Advanced binding properties
                1. Converters
                2. Validators
            5. Editing events
            6. Editing code
            7. Creating connections
        2. JavaFX applications
          1. JavaFX Scene Builder
        3. Summary
      14. 7. Creating the Business Layer
        1. Creating enterprise projects
          1. Creating a NetBeans multi-module project
          2. A Maven multi-module project
            1. Creating a Maven multi-module project
          3. Creating EJBs
        2. Creating a session bean façade for entity classes
        3. The Java Bean Validation framework
          1. Creating a Bean Validation constraint
        4. Contexts and Dependency Injection
          1. Adding CDI support
          2. CDI injection points editor support
        5. Summary
      15. 8. Creating the Web Tier
        1. Creating web projects
          1. Configuring application servers
          2. Creating a web application
            1. Creating a NetBeans web application
              1. Modifying a NetBeans web application
            2. Creating a Maven web application
            3. The web project's Run options
        2. Adding components to a web application
        3. Creating Spring web applications
          1. Changing the version of Spring used
            1. Spring application development shortcuts
          2. Modern Spring development
            1. Enhancing Spring Boot support
        4. CSS preprocessors
          1. Configuring Less and SASS in NetBeans
          2. Configuring Less and Sass on a project basis
            1. Creating CSS rules
        5. Adding JavaScript to a web application
          1. Checking JavaScript files
        6. Summary
      16. 9. Creating and Consuming Web Services
        1. Creating web services
          1. Creating a SOAP web service
            1. Creating a SOAP web service from scratch
            2. Creating a SOAP web service from WSDL
          2. Managing SOAP-based web services
            1. Testing web services
            2. Message handlers
          3. Managing web services graphically
        2. Consuming SOAP web services
        3. Creating RESTful web services
          1. The Simple Root Resource option
          2. The Container-Item option
          3. The Client-Controlled Container-Item option
        4. Summary
      17. 10. Extending NetBeans
        1. Creating NetBeans plugins
        2. NetBeans rich client platform applications
          1. Creating a NetBeans RCP application
            1. Branding the application
            2. Application properties
          2. Creating platform application components
            1. Creating a NetBeans window
        3. Summary
      18. Index