PacktLib: NetBeans IDE 7 Cookbook

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

NetBeans Head First

Introduction

Creating a Java Project Using Wizard

Creating libraries

Sharing libraries

Importing Projects from Eclipse

Importing existing Maven Projects

Basic IDE Usage

Introduction

Creating a Java Project using Maven support

Creating a package

Creating a class

Running the main class

Debugging a class

Creating constructors

Generating toString(), equals(), and hashCode()

Generating getters and setters

Designing Desktop GUI Applications

Introduction

Creating a Java Desktop Application

Creating a Frame

Creating a Panel

Adding Event Listeners

Connecting your Application to a Database

Creating a customized icon for your application

Making executable Java Desktop Applications

JDBC and NetBeans

Introduction

Setting up with MySQL

Setting up with PostgreSQL

Setting up with Apache Derby/Java DB

Setting up with Oracle

Built-in SQL editor

Building Web Applications

Introduction

Creating a web project using the wizard

Introduction to Java EE 6 using NetBeans

Adding JSF as a web framework

Using JSF as a web framework

Using Apache Struts as a web framework

Using GWT as a web framework

Using JavaFX

Introduction

Creating a JavaFX Project

Build UI with NetBeans JavaFX Composer

Connecting JavaFX Application to Web Service

Connecting JavaFX Application to Database

Application States in JavaFX

EJB Application

Introduction

Creating EJB project

Adding JPA support

Creating Stateless Session Bean

Creating Stateful Session Beans

Sharing a service through Web Service

Creating a web service client

Mobile Development

Introduction

Creating CLDC/MIDP applications

Creating CDC applications

Using the Visual Mobile Designer

Beautifying your mobile application

Java Refactoring

Introduction

Renaming elements

Moving elements

Extracting a superclass

Extracting an interface

Encapsulating fields

Extending the IDE

Introduction

Creating a new project Wizard

Creating a new file wizard

Creating options panels

Profiling and Testing

Introduction

Profiling Java code

Creating unit tests

Using SQE for improved code quality

Monitoring HTTP connections

Using the JMeter load generator

Version Control

Introduction

Adding a project to Subversion

Checking in modifications

Working with a Subversion branch

Resolving conflicts in Subversion

Creating a Mercurial project

Cloning a Mercurial repository

Committing to a Mercurial project

Index