Free Sample
+ Collection

NetBeans IDE 8 Cookbook

David Salter, Rhawi Dantas

Over 75 practical recipes to maximize your productivity with NetBeans
RRP $29.99
RRP $49.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781782167761
Paperback386 pages

About This Book

  • Increase developer productivity using features like refactoring and code creation
  • Test applications effectively using JUnit, TestNG and Arquilian
  • A recipe based guide filled with practical examples to help you create robust applications using NetBeans

Who This Book Is For

If you’re a Java developer of any level using NetBeans and want to learn how to get the most out of NetBeans, then this book is for you. Learning how to utilize NetBeans will provide a firm foundation for your Java application development.

Table of Contents

Chapter 1: Using NetBeans Projects
Creating a Java application
Creating a Maven application
Using Maven projects
Creating a Free-Form application
Creating a library
Importing an Eclipse project
Chapter 2: Java Development with NetBeans
Creating a package
Creating a class
Creating an interface
Running a file
Debugging a class
Formatting the code
Collapsing and expanding code folds
Toggling comments
Fixing and organizing imports
Creating file headers
Changing the look and feel of NetBeans
Chapter 3: NetBeans Productivity
Creating a constructor
Creating a logger
Creating a toString() method
Creating a property
Overriding a method
Rename refactoring
Move refactoring
Copy refactoring
Delete refactoring
Change parameters refactoring
Pull up / push down refactoring
Extract interface refactoring
Encapsulate fields refactoring
Replacing a constructor with the Factory pattern
Chapter 4: Developing Desktop Applications with NetBeans
Creating a Swing application
Adding components to a form
Creating menus
Creating dialogs
Creating toolbars
Responding to events
Building a distributable application from NetBeans
Chapter 5: NetBeans Enterprise Application Development
Adding WildFly support to NetBeans
Adding TomEE support to NetBeans
Creating a web application
Creating a web application with JSF support
Adding JSF support to a web application
Creating a JSF composite component
Creating an EJB
Creating a Message Driven EJB
Creating a timer
Creating a REST web service
Using the Chrome Connector
Chapter 6: Managing Databases with NetBeans
Connecting to Java DB
Registering and managing a MySQL Server
Connecting to Microsoft SQL Server and Oracle
Connecting to PostgreSQL
Managing a SQL database
Connecting to MongoDB
Chapter 7: NetBeans JavaFX
Creating a JavaFX application
Graphical editing of FXML files
Styling a JavaFX application with CSS
Creating and using a JavaFX custom control
Deploying a self-contained application
Chapter 8: NetBeans Mobile Development
Adding mobile support to NetBeans
Creating an MIDP application
Adding Android support to NetBeans
Creating an Android application
Chapter 9: Version Control
Initializing a Git repository
Cloning a Git repository
Checking out from a Subversion repository
Getting the history of a file
Committing and pushing code changes
Creating a Diff patch
Branching a repository
Chapter 10: NetBeans Testing and Profiling
Installing JUnit support into NetBeans
Creating a JUnit test for an existing class
Creating a JUnit test
Creating a JUnit test suite
Running tests
Creating a TestNG unit test
Profiling an application
Chapter 11: Using External Web Services
Getting a list of Delicious bookmarks
Adding a Delicious bookmark
Getting a list of recent photos on Flickr
Geocoding with Google Maps
Verifying an e-mail address with StrikeIron
Adding an additional web service into NetBeans
Chapter 12: Extending NetBeans
Creating a NetBeans module
Packaging a NetBeans module for deployment

What You Will Learn

  • Develop a variety of application types using different libraries with Ant, Maven, and NetBeans
  • Refactor code efficiently and quickly
  • Manage databases with ease from within your IDE
  • Configure your mobile development environment
  • Develop enterprise applications using the latest Java EE 7 technologies
  • Version-control your applications with a variety of different providers
  • Use the latest testing and profiling tools
  • Extend NetBeans with an array of new features

In Detail

From the start to the end of a Java project's lifecycle, this book will show you how to perform many key tasks with the NetBeans IDE, uncovering more about mobile, desktop, and enterprise Java along the way.

You will start by creating Java projects and learning how to refactor and use NetBeans tools to increase developer efficiency. You will then get a walkthrough of how to create a desktop application before covering JavaFX and mobile applications and how to use external services within them. Having seen how to create many different types of applications, you will then be shown how to test and profile them before storing them in revision control systems such as Git or Subversion. Finally, you will learn how to extend NetBeans itself by adding new features to the IDE.


Read More