rent-now

Rent More, Save More! Use code: ECRENTAL

5% off 1 book, 7% off 2 books, 10% off 3+ books

9780131876200

NetBeans IDE Field Guide : Developing Desktop, Web, Enterprise, and Mobile Applications

by ; ; ; ;
  • ISBN13:

    9780131876200

  • ISBN10:

    0131876201

  • Edition: 1st
  • Format: Paperback
  • Copyright: 2005-06-27
  • Publisher: Prentice Hall
  • View Upgraded Edition
  • Purchase Benefits
List Price: $44.99

Summary

Written by the NetBeans project leaders, this is the only definitive guide to the NetBeans IDE!

Author Biography

Christopher Webster, a member of the Java Studio Enterprise development team, focuses on service-oriented architecture (SOA) tools. Before joining Sun, Chris was a computer scientist at the Lawrence Livermore National Laboratory.

Table of Contents

Forewordp. xi
Forewordp. xiii
Prefacep. xv
About the Authorsp. xxi
Acknowledgmentsp. xxiii
Download, Installation, and First Projectp. 1
Downloading the IDEp. 2
Installing the IDEp. 3
Setting a Proxyp. 3
First NetBeans IDE Projectp. 4
NetBeans IDE Fundamentalsp. 9
Creating a Projectp. 10
Configuring the Classpathp. 12
Creating a Subprojectp. 14
Creating and Editing Filesp. 15
Setting Up and Modifying Java Packagesp. 17
Compiling and Buildingp. 18
Viewing Project Metadata and Build Resultsp. 19
Navigating to the Source of Compilation Errorsp. 20
Runningp. 20
Creating and Running Testsp. 21
Debugging the Applicationp. 21
Integrating Version Control Commandsp. 22
Managing IDE Windowsp. 24
IDE Project Fundamentalsp. 25
Introduction to IDE Projectsp. 26
Choosing the Right Project Templatep. 28
Creating a Project from Scratchp. 29
Importing a Project Developed in a Different Environmentp. 33
Navigating Your Projectsp. 37
Working with Files Not in the Projectp. 41
Creating Packages and Files in the Projectp. 42
Configuring the Project's Classpathp. 44
Changing the Version of the JDK That Your Project Is Based Onp. 44
Changing the Target JDK for a Standard Projectp. 45
Referencing JDK Documentation (Javadoc) from the Projectp. 46
Adding Folders and JAR Files to the Classpathp. 46
Making External Sources and Javadoc Available in the IDEp. 47
Structuring Your Projectsp. 48
Displaying and Hiding Projectsp. 49
Setting Up a Project to Work with Version Controlp. 50
Compiling a Projectp. 53
Running a Projectp. 58
Writing Your Own Manifest for Your JAR Filep. 60
Filtering Contents Packaged into Outputsp. 60
Running a Project from Outside of the IDEp. 61
Customizing the IDE-Generated Build Scriptp. 62
Running a Specific Ant Target from the IDEp. 66
Completing Ant Expressionsp. 66
Making a Menu Item or Shortcut for a Specific Ant Targetp. 67
Editing and Refactoring Codep. 71
Opening the Source Editorp. 72
Managing Automatic Insertion of Closing Charactersp. 73
Displaying Line Numbersp. 74
Generating Code Snippetsp. 75
Handling Importsp. 86
Displaying Javadoc Documentation While Editingp. 86
Formatting Codep. 87
Navigating within the Current Java Filep. 91
Navigating from the Source Editorp. 94
Searching and Replacingp. 96
Moving a Class to a Different Packagep. 101
Changing a Method's Signaturep. 103
Tracking Notes to Yourself in Your Codep. 105
Comparing Differences Between Two Filesp. 107
Splitting the Source Editorp. 107
Maximizing Space for the Source Editorp. 108
Changing Source Editor Keyboard Shortcutsp. 108
Building Rich Clientsp. 109
Debugging Java Applicationsp. 123
Starting a Debugging Sessionp. 125
Attaching the Debugger to a Running Applicationp. 129
Starting the Debugger Outside of the Project's Main Classp. 131
Stepping Through Codep. 131
Setting Breakpointsp. 135
Managing Breakpointsp. 139
Customizing Breakpoint Behaviorp. 140
Monitoring Variables and Expressionsp. 143
Backing Up from a Method to Its Callp. 146
Monitoring and Controlling Execution of Threadsp. 146
Fixing Code During a Debugging Sessionp. 148
Viewing Multiple Debugger Windows Simultaneouslyp. 149
Developing Web Applicationsp. 151
Representation of Web Applications in the IDEp. 153
Adding Files and Libraries to Your Web Applicationp. 157
Editing and Refactoring Web Application Filesp. 162
Deploying a Web Applicationp. 168
Testing and Debugging Your Web Applicationp. 171
Creating and Deploying Appletsp. 173
Changing the IDE's Default Web Browserp. 177
Monitoring HTTP Transactionsp. 177
Introduction to J2EE Development in NetBeans IDEp. 187
Configuring the IDE for J2EE Developmentp. 188
Getting the Most from the Java BluePrints Solutions Catalogp. 191
Extending Web Applications with Business Logic: Introducing Enterprise Beansp. 199
EJB Project Type Wizardsp. 201
Adding Enterprise Beans, Files, and Libraries to Your EJB Modulep. 204
Adding Business Logic to an Enterprise Beanp. 207
Adding a Simple Business Methodp. 208
Enterprise Bean Deployment Descriptorsp. 211
Extending J2EE Applications with Web Servicesp. 215
Consuming Existing Web Servicesp. 216
Implementing a Web Service in a Web Applicationp. 221
Implementing Web Services within an EJB Modulep. 229
Testing Web Servicesp. 230
Adding Message Handlers to a Web Servicep. 232
Developing Full-Scale J2EE Applicationsp. 239
Creating Entity Beans with the Top-Down Approachp. 241
Creating Entity Beans with the Bottom-Up Approachp. 250
Assembling J2EE Applicationsp. 253
Importing Existing J2EE Applicationsp. 256
Consuming J2EE Resourcesp. 260
J2EE and Security Managementp. 268
Understanding the J2EE Application Server Runtime Environmentp. 274
Ensuring J2EE Compliancep. 282
Refactoring Enterprise Beansp. 284
Developing J2ME Mobility Applicationsp. 287
Downloading and Installing the Mobility Packp. 288
Setting Up Mobility Projectsp. 288
Creating a Project from Scratchp. 290
Importing a Projectp. 291
Physical Structure of Mobile Projectsp. 293
Using Mobility File Templatesp. 294
Configuring the Project's Classpathp. 296
Debugging Your Projectp. 298
Configuring Your Project for Different Devicesp. 299
Setting the Active Configuration for Your Projectp. 301
Reusing Project Settings and Configurationsp. 302
Structuring Project Dependenciesp. 304
Managing the Distribution JAR File Contentp. 305
Handling Project Resources for Different Configurationsp. 306
Writing Code Specific to a List of Configurationsp. 307
Using Configuration Abilitiesp. 312
Creating and Associating an Ability with a Configurationp. 313
Localizing Applicationsp. 314
Using the MIDP Visual Designerp. 316
Deploying Your Application Automaticallyp. 328
Incrementing the Application's MIDlet-Version Automaticallyp. 330
Installing Nonstandard Emulator Platformsp. 331
Using Ant in Mobility Projectsp. 336
Using Headless Buildsp. 339
Finding More Informationp. 341
Integrating Existing Ant Scripts with the IDEp. 343
Creating a Free-Form Projectp. 345
Mapping a Target to an IDE Commandp. 347
Setting Up the Debug Project Command for a General Java Applicationp. 348
Setting Up the Debug Project Command for a Web Applicationp. 352
Setting Up Commands for Selected Filesp. 356
Setting Up the Compile File Commandp. 357
Setting Up the Run File Commandp. 360
Setting Up the Debug File Commandp. 361
Setting Up the Debugger's Apply Code Changes Commandp. 363
Changing the Target JDK for a Free-Form Projectp. 365
Making a Custom Menu Item for a Targetp. 366
Debugging Ant Scriptsp. 366
Importing an Eclipse Project into NetBeans IDEp. 369
Getting the Eclipse Project Importerp. 370
Choosing Between Importing with and Importing without Project Dependenciesp. 371
Importing an Eclipse Project and Preserving Project Dependenciesp. 371
Importing an Eclipse Project and Ignoring Project Dependenciesp. 373
Handling Eclipse Project Discrepanciesp. 375
Handling Eclipse Project Reference Problemsp. 376
Indexp. 379
Table of Contents provided by Ingram. All Rights Reserved.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Excerpts

This book is designed both as an introduction to NetBeans IDE and as a task reference, something that you can pick up from time to time to get an answer to a question or to find new ways to take advantage of the IDE's possibilities. Whether NetBeans is your first IDE or your fifth, this book can help you make the most of the IDE. What Is NetBeans IDE? NetBeans IDE is a free-of-charge integrated development environment (IDE) primarily focused on making it easier to develop Java applications. It provides support for all types of Java applications, from rich desktop clients to multi-tier enterprise applications to applications for Java-enabled handheld devices. NetBeans IDE has a modular architecture that allows for plug-ins. However, the range of features in the basic installation is so rich that you can probably can start using the IDE for your work without worrying about plug-ins at all. The IDE itself is written in Java, so you can run it on any operating system for which there is a Java 2 Standard Edition JDK (Version 1.4.2, Version 5.0, or later) available. Click-through installers are generally available for Microsoft Windows, Solaris, Linux, Mac OS, and OpenVMS systems. You can also download the IDE as a .zip or .tar file if you want to install it on an operating system other than the ones listed above. The IDE's basic job is to make the edit-compile-debug cycle much smoother by integrating the tools for these activities. For example, the IDE: Identifies coding errors almost immediately and marks them in the Source Editor. Helps you code faster with code completion, word matching, abbreviation expansion, and fix import features. Provides visual navigation aids, such as the Navigator window and "code folding," as well as numerous keyboard navigation shortcuts designed especially for Java programmers. Can display documentation for a class as you are typing in the Source Editor. Hot-links compilation errors in the Output window, so you can jump straight to the source by double-clicking the line or pressing F12. Manages package names and references to other classes. When you rename or move classes around, the IDE identifies places in the code that are affected by these changes and enables you to have the IDE generate the appropriate changes to those files. Has many debugging features that provide a comprehensive view of the way your code is working as it runs. You can set breakpoints, which persist from session to session and keep your code free of clutter, such as println statements. Helps you integrate other parts of your workflow, such as checking sources into and out from a version control system. You can also download the NetBeans Profiler to augment the traditional edit-compile-debug cycle with performance testing. What Makes NetBeans IDE Special When you use NetBeans IDE, you get the benefits of a top-shelf IDE without the negatives that you might associate with moving your development to a single environment. Like other integrated development environments, NetBeans IDE provides a graphical user interface for command line tools that handle the compiling, debugging, and packaging of applications. Unlike other IDEs, NetBeans IDE does not force a build structure on you with project metadata that you need to reverse engineer if you are to use build the project outside of the IDE. NetBeans IDE builds on existing open standards to help you automate your development process without locking you in. NetBeans IDE bases its whole project system on Ant, which is the de facto standard build tool for Java applications. The project metadata that NetBeans IDE produces is in the form of XML and properties files that can be used by Ant outside of the IDE. Thus developing a project in NetBeans IDE does not lock you or codevelopers into NetBeans IDE. You can use NetBeans IDE to create large projects with sop

Rewards Program