NetBeans: The Definitive Guide: Developing, Debugging, and Deploying Java Code

As the Java programming language has increased in both functionality and complexity, developers have demanded more of their program editors. Gone are the days when a simple visual editor is sufficient for even small programming projects. While there are numerous IDEs available today for use by Java developers, one stands above the rest, not only for its functionality, but for its extensibility: NetBeans.In NetBeans: The Definitive Guide, you'll find out how to use this IDE to its fullest, making your Java programming more efficient and productive than ever before. You'll understand the basics of the IDE, and quickly be utilizing the various editor and explorer windows. You'll also master many of NetBeans advanced features, and be working with XML documents, CVS repositories, Javadoc trees, and web applications, all within the NetBeans framework.In addition to teaching you how to use the existing features of NetBeans, this work goes on to cover developing additional modules for NetBeans. Through this instructional portion of the book, you will master the NetBeans APIs, and learn how to enhance NetBeans for your own specific needs. Whether you need to add customized behavior to handle your proprietary file formats, or want to redistribute NetBeans as a proprietary product, NetBeans: The Definitive Guide will allow you to master this open source IDE and all of its advanced features. Whether you are an enterprise developer looking for an IDE that can handle your complex program tasks, an open source developer looking to integrate NetBeans into your own visual projects, or a manager trying to maximize your team's development potential,NetBeans: The Definitive Guide is the book for you.

1100319671
NetBeans: The Definitive Guide: Developing, Debugging, and Deploying Java Code

As the Java programming language has increased in both functionality and complexity, developers have demanded more of their program editors. Gone are the days when a simple visual editor is sufficient for even small programming projects. While there are numerous IDEs available today for use by Java developers, one stands above the rest, not only for its functionality, but for its extensibility: NetBeans.In NetBeans: The Definitive Guide, you'll find out how to use this IDE to its fullest, making your Java programming more efficient and productive than ever before. You'll understand the basics of the IDE, and quickly be utilizing the various editor and explorer windows. You'll also master many of NetBeans advanced features, and be working with XML documents, CVS repositories, Javadoc trees, and web applications, all within the NetBeans framework.In addition to teaching you how to use the existing features of NetBeans, this work goes on to cover developing additional modules for NetBeans. Through this instructional portion of the book, you will master the NetBeans APIs, and learn how to enhance NetBeans for your own specific needs. Whether you need to add customized behavior to handle your proprietary file formats, or want to redistribute NetBeans as a proprietary product, NetBeans: The Definitive Guide will allow you to master this open source IDE and all of its advanced features. Whether you are an enterprise developer looking for an IDE that can handle your complex program tasks, an open source developer looking to integrate NetBeans into your own visual projects, or a manager trying to maximize your team's development potential,NetBeans: The Definitive Guide is the book for you.

35.99 In Stock
NetBeans: The Definitive Guide: Developing, Debugging, and Deploying Java Code

NetBeans: The Definitive Guide: Developing, Debugging, and Deploying Java Code

NetBeans: The Definitive Guide: Developing, Debugging, and Deploying Java Code

NetBeans: The Definitive Guide: Developing, Debugging, and Deploying Java Code

eBook

$35.99 

Available on Compatible NOOK devices, the free NOOK App and in My Digital Library.
WANT A NOOK?  Explore Now

Related collections and offers


Overview

As the Java programming language has increased in both functionality and complexity, developers have demanded more of their program editors. Gone are the days when a simple visual editor is sufficient for even small programming projects. While there are numerous IDEs available today for use by Java developers, one stands above the rest, not only for its functionality, but for its extensibility: NetBeans.In NetBeans: The Definitive Guide, you'll find out how to use this IDE to its fullest, making your Java programming more efficient and productive than ever before. You'll understand the basics of the IDE, and quickly be utilizing the various editor and explorer windows. You'll also master many of NetBeans advanced features, and be working with XML documents, CVS repositories, Javadoc trees, and web applications, all within the NetBeans framework.In addition to teaching you how to use the existing features of NetBeans, this work goes on to cover developing additional modules for NetBeans. Through this instructional portion of the book, you will master the NetBeans APIs, and learn how to enhance NetBeans for your own specific needs. Whether you need to add customized behavior to handle your proprietary file formats, or want to redistribute NetBeans as a proprietary product, NetBeans: The Definitive Guide will allow you to master this open source IDE and all of its advanced features. Whether you are an enterprise developer looking for an IDE that can handle your complex program tasks, an open source developer looking to integrate NetBeans into your own visual projects, or a manager trying to maximize your team's development potential,NetBeans: The Definitive Guide is the book for you.


Product Details

ISBN-13: 9781449332556
Publisher: O'Reilly Media, Incorporated
Publication date: 10/22/2002
Sold by: Barnes & Noble
Format: eBook
Pages: 674
File size: 9 MB

About the Author

is a native of Massachusetts who has worked in the IT industry as a developer, writer, graphic artist on and off since the age of twelve. Following a hiatus as a literary theory major and musician, he returned to the world of computers at the age of 23 in response to the marvelous career opportunities for a student of literature during a recession, and the clamour of the IT world for his return. In the spring of 1999, he moved to the Czech Republic to work for a small company called NetBeans, which was soon to be acquired by Sun Microsystems, where he still lives and works. Tim can be found at most times perched with an underpowered laptop, deep in ascetic concentration in his monastic quarters high in the towers of Sun Microsystems in Prague. He is occasionally led outside, blinking in the twilight, to belt out blues tunes in smoky bars, on the advice of his physicians and Sun Microsystems' "Great Place to Work" program.


has worked on NetBeans since January 1999 in several capacities, including developing NetBeans core software, editing API documentation, and providing assistance for integrators. He joined Sun with the acquisition of NetBeans in the fall of 1999. He has spoken twice at JavaOne on NetBeans module development.


currently lives with his wife Nikki in Philadelphia PA, but is originally from the sunny island republic of Trinidad and Tobago. In the pursuit of money, education and all else that corrupts, he left his island paradise and currently works as a developer for Hewlett-Packard. Although he misses tropical breezes and an idyllic lifestyle, he enjoys being a software developer and the opportunity to work with interesting technical people like those on the NetBeans project. Besides technology, Simeon also enjoys poetry, classical literature, travel and underground hip-hop - of course.


began his programming career in 1967 on the physically largest computer ever built, the SAGE system's house-sized AN/FSQ-7. A freelance consultant since 1975, he worked with a wide range of computer hardware and languages, including several early personal computers before they were known as such. Vaughn currently writes technical articles about Sun ONE Studio and develops training materials for Sun.

Table of Contents

Prefacexiii
1.Getting and Installing the IDE1
Platforms and Requirements1
Getting and Installing a JDK2
Which IDE Distribution?3
Installing Binary Distributions5
Building the IDE from Source (Simple Builds)6
Running the IDE9
Updating the IDE Automatically14
You're Now Running NetBeans16
2.Concepts and Paradigms18
NetBeans and the Java Abstract Model of Computing18
Explorer19
Creating Packages and Classes38
Services41
Workspaces45
Project Management47
Object Browser50
Summary52
3.Working with the Source Editor53
Why Learn a New Editor?53
Opening the Source Editor53
Context Menus54
Closing the Source Editor54
Code Completion55
Editor Colorings57
Shortcuts59
Word Matching60
Indentation Engines and Code Formatting60
Automatic Edits61
Other Editor Functionality62
A Simple Example62
4.Debugging66
Debugger Types66
Breakpoint Types67
Adding and Removing Breakpoints68
Setting Watches71
Starting the Debugger72
The Debugger Window74
The Variables View76
Remote Debugging in NetBeans76
5.Compilation and Execution Services80
Using Custom Compilation and Execution Services80
Associating Services with Java Files87
Building with Ant88
6.Customizing the Environment93
The Setup Wizard93
The Tools[right arrow]Options Dialog97
Configuring Toolbars98
Configuring Menus100
Configuring Editors100
Command Line Options109
Modules111
7.Using Source Control (CVS)115
What Is CVS?115
The How, When, and Why of CVS in NetBeans117
Mounting CVS Sources120
Exploring Versioned Sources121
Common CVS Operations122
Unexpected Results125
Uncommon CVS Operations127
Mounting a Generic Versioning System128
One Final Tip130
8.GUI Building132
Creating a GUI Frame or Panel132
Adding Components to a GUI Container135
Configuring Components137
Building Menus138
Changing a Container's Layout139
Working with Borders139
Accessibility140
Copying a Source Object141
The Connection Wizard141
The GridBagLayout Customizer143
Adding Event Handlers146
Using the Code Generation Properties148
Working Around Code Generation150
Containers Within Containers151
Building Complex GUIs152
9.JavaBeans154
Why Should I Make Beans?154
Creating JavaBeans154
Component Palette165
10.Using Javadoc168
Javadoc Support in NetBeans168
Mounting Javadocs168
The Javadoc Search Tool169
Creating Javadoc172
11.Working with XML180
Installing XML Support180
Overview180
XML Editors182
Beyond Editing XML184
Generating Java Classes189
12.Developing Web Applications198
Why the IDE Supports Web Application Development198
How the IDE Provides Web Application Support198
Creating a Web Application199
Working with JSP and HTML Files202
Advanced Web Applications Features204
Packaging and Deploying Web Applications206
13.Extending NetBeans208
What's Different About NetBeans?209
The Core and the Open APIs210
NetBeans for Bean Counters215
Getting and Installing the Open APIs Support Module216
Life Is Change217
Source Code for the Examples217
14.Understanding the NetBeans APIs218
Design Philosophy of NetBeans218
User-Level Customization231
Modules--Overview236
Interacting with the IDE240
15.The Open APIs243
APIs versus Core versus Modules244
Service Provider Interfaces and Client APIs245
Overview of the APIs and Their Purposes246
Modules, JARs, and Class Loaders276
Threading, Deadlocks, and How to Avoid Them280
16.Developing Modules--the New Module Wizard283
The HelloWorld Module283
17.Internals of the Running IDE288
The Activated Node(s)288
Cookies289
A Peek under the Hood290
Touring NetBeans with the Bean Browser291
Data Objects, Nodes, and Cookies293
Filesystems and the Repository294
Services295
Lookup296
Options297
UI Components298
Localization306
Wizards306
Jumping-off Places307
Special Folders in the System Filesystem308
18.Creating the QuickPanel Module311
Abstractions Covered in This Chapter312
Creating the Project Files Drop-Down313
FilterNode--Filtering Which Children of a Node Are Displayed317
Creating the Methods Drop-Down319
Improving the Methods Drop-Down321
Creating the Module325
A Little Homework328
19.A Mail-Based Filesystem329
Building a Mail Reader in the NetBeans Paradigm329
Implementing MailFileSystem Using AbstractFileSystem and JavaMail330
Creating Folder Objects for Attachments340
Using FileSystem.Status Annotations to Mark Unread Messages341
BeanInfo--Displaying Filesystem Properties343
Using the Wizard Framework to Set Up Mail Accounts345
20.Creating the User Interface for the Mail Client356
Creating a DataLoader for Messages356
Creating a Threaded Mail View Using Filter Nodes363
Creating a Mail Workspace377
21.Score File Support383
Overview--Functionality to be Implemented383
Creating the Minicomposer Module383
Creating a UniFileLoader and MultiDataObject for *.score Files386
Creating an Editor Support for Scores389
Creating a Fixed ExecCookie to Play Scores392
Creating a Simple Template395
22.Creating a Structural View of the Score398
Creating a ScoreCookie to Represent a Sequence of Notes398
Creating a ScoreSupport401
Lifecycle of the Score406
An OpenSupport407
Indicating Parse Errors on the Node415
23.Compiling Scores420
Creating the Compilers420
Creating and Using the Compiler Cookie426
Displaying an Out-of-Date Badge on Score Icons430
24.Executing Scores433
Creating the .au Player Executor434
Creating Player Configuration Support444
Creating a SystemOption for the Default Executor446
25.Better Score Support in the Explorer454
The Clip Length Property454
Representing Notes as Subnodes Using Children.Keys458
Permitting Subnodes to Be Renamed or Deleted465
Permitting Subnodes to Be Added468
Making Read/Write Properties on Subnodes471
Reordering Subnodes474
Data Transfer--Cut, Copy, and Paste of Notes and Sequences478
26.Tuning Modules for Performance & Memory Footprint491
Startup Performance vs. Runtime Performance492
Operating Principles492
Techniques494
27.Producing Modules (Packaging & Distribution)504
Versioning504
Upgrading User Settings512
Bundling Extension Libraries519
Internationalization and Accessibility524
JavaHelp--Writing and Distributing528
Supporting User-Level Java APIs534
Creating the Module JAR File Within the IDE539
Creating a Build Script Using Ant539
Producing the .nbm File541
Publishing Using the Update Center543
Using ErrorManager to Log Problems546
Testing548
28.Building Your Distribution of NetBeans550
Do You Need Your Own Distribution?550
Licensing551
Selecting a Baseline552
Getting the Sources553
Customizing the Build Process554
Adding Modules to a "Stock" Distribution556
Creating Preconfigured Settings558
Branding558
A.A Tour of Existing Modules572
B.Useful Utility Classes586
C.Resources590
D.Future Plans595
E.Working with Open Source and NetBeans602
F.Additional Modules and Where to Find Them615
Index627
From the B&N Reads Blog

Customer Reviews