Pro NetBeans IDE 5.5 Enterprise Edition / Edition 1

Pro NetBeans IDE 5.5 Enterprise Edition / Edition 1

by Adam Myatt
Pub. Date:

Paperback - Rent for

Select a Purchase Option (2007)
  • purchase options
    $29.01 $49.99 Save 42% Current price is $29.01, Original price is $49.99. You Save 42%.
  • purchase options


Pro NetBeans IDE 5.5 Enterprise Edition / Edition 1

The development environment you use should assist you in every way possible, and I think the NetBeans[Trademark] platform does that better than any other IDE. In fact, I believe NetBeans is the best Java[Trademark] software development platform available today, and that's why I wrote this book. Here, I focus on the key features of the open source, lightweight NetBeans Integrated Development Environment (IDE) 5.5. You'll see how to work with a variety of application types using NetBeans tools, such as the Visual Web Pack for JSF[Trademark] API and Ajax development, and the Enterprise Pack for UML modeling. I'll also cover EJB[Trademark] 3.0 components, Java persistence, web services, SOA, XML, and more. Additionally, you'll learn about the core features of the NetBeans IDE that assist professional software developers, such as Ant, JUnit, version control (CVS and Subversion), the developer collaboration tools, and code coverage.

NetBeans provides you with an intuitive interface for working with complex technologies, helping you make sense of them and enabling you to put the most challenging projects in your portfolio. After reading this book, you'll understand how to use the NetBeans IDE platform effectively when working with enterprise technologies. It will help you save time, make you more productive, and introduce some fun into developing software applications with NetBeans. Enjoy reading Pro NetBeans[Trademark] IDE 5.5 Enterprise Edition and look forward to using the amazing NetBeans IDE to rapidly develop your own enterprise Java applications.

Product Details

ISBN-13: 9781590597880
Publisher: Apress
Publication date: 04/08/2007
Series: Expert's Voice in Java Technology Series
Edition description: 2007
Pages: 472
Product dimensions: 7.00(w) x 9.25(h) x 0.95(d)

Table of Contents

About the Author     xvii
About the Technical Reviewer     xix
Acknowledgments     xxi
Introduction     xxiii
Creating and Managing Projects
Integrated Development Environments     3
Why Use an IDE?     4
NetBeans vs. Other IDE Tools     5
Summary     7
Installing and Customizing NetBeans     9
Downloading Files     9
Installing the NetBeans IDE and Core Add-Ons     9
Customizing the NetBeans JVM Startup Options     10
Setting a Proxy     11
Checking for Updates     12
Using the Update Center     12
Installing Previously Downloaded Modules     16
Activating Features Through the Module Manager     17
Customizing the IDE     18
Setting the Internal Web Browser     18
Setting Code Editor Indentation     19
Choosing Fonts and Colors     22
Configuring Keymaps     24
Setting Advanced Options     25
Navigating the IDE     26
Projects Window     26
Files Window     26
Runtime Window     27
Navigator Window     27
SourceEditor     27
Output Window     27
Properties Window     27
Palette Window     28
Summary     28
Creating a Java Project     29
Creating a Java Application     29
Working in the Projects Window     31
Source Packages     31
Test Packages     33
Libraries     33
Test Libraries     33
Working in the Source Editor     34
Displaying Files     34
Line Numbers     35
Code Folding     35
Current Line Highlighting     35
Code Syntax Error Highlighting     36
Annotation Glyphs and the Error Stripe     36
Arranging Files in the Source Editor     37
Working in the Files Window     38
Importing Projects and Code     39
Creating a Java Project from Existing Sources     39
Importing an Existing Project from Eclipse     40
Importing an Existing Project from JBuilder     42
Building     42
Adding Java Files to a Project     42
Compiling and Running the Project     43
Summary     44
Creating a Web Application Project     45
Creating a Web Application     45
Navigating the Web Application Project     48
Web Pages     49
Configuration Files     49
Server Resources     49
Adding Web Application Files     49
Adding HTML Files     50
Adding CSS Files     52
Adding Deployment Descriptors     54
Adding JSP Files     56
Leveraging Struts     60
Adding Struts Support     60
Adding Forms     62
Adding Actions     63
Configuring Struts     65
Building a Web Application     65
Cleaning and Building a Project     66
Compiling JSP Files     66
Repeating and Stopping Builds     67
Running a Web Application     67
Defining Java Application Servers     68
Using Tomcat     69
Using the Sun Java System Application Server     72
Using JBoss     73
Using BEA WebLogic     75
Setting Advanced Server Options     76
Setting the Application Server for a Project     77
HTTP Monitoring     78
Enabling the HTTP Monitor      78
Using the HTTP Monitor     78
Exploring the Sample Web Projects     81
Summary     82
Creating Visual Web Applications: JSF, Ajax, and Data Binding     83
Getting Started with the VWP     83
Installing the VWP     84
Configuring VWP Options     84
Creating a Visual Web Application     87
Creating a Visual Web Application Project     87
Navigating the Visual Web Application Project Structure     88
Setting Project Properties     92
Navigating the Visual Web Application Project Layout     93
Building a Project     96
Running a Project     97
Using VWP Themes     98
Customizing Themes     98
Importing the Modified Theme     102
Using the Page Navigation Tool     104
Defining Navigation Rules     104
Using the Page Navigation Window     104
Working with JSF Components     108
Setting Component Properties     108
Setting Component Event Handlers     109
Working with the Table Component     110
Working with Ajax-Enabled Components     114
Installing the Ajax Components      115
Adding the Component Library to a Project     116
Using the Ajax Components     117
Data Binding     119
Binding to an Object     119
Binding to a Database Table     123
Binding to a Drop-Down List     127
Working with the Visual Database Query Editor     128
Summary     130
Creating Java Enterprise Projects     131
Creating an Enterprise Application     131
Creating an Enterprise Application Project     131
Navigating the Enterprise Application Project Structure     134
Creating an EJB Module     137
Creating an EJB Module Project     137
Navigating the EJB Module Project Structure     139
Working with Session Beans     140
Working with Message-Driven Beans     146
Creating an Enterprise Application Client     151
Verifying an Enterprise Project     152
Working with Persistence     153
Creating a Persistence Unit     154
Understanding the persistence.xml File     155
Creating an Entity Class     156
Creating JSF Pages from an Entity Class     161
Summary     164
Creating Web Service Projects: JAX-WS, SOA, and BPEL     165
Installing the Enterprise Pack     165
Using the Bundled Application Server     165
Using a Preinstalled Application Server     167
Skipping Application Server Installation     168
Creating Web Services     168
Creating a Web Services     169
Creating a Web Service Client     175
Creating a Web Service from a WSDL File     181
Creating a Message Handler     182
Creating a Logical Handler     185
Working with SOA and BPEL     185
Creating a BPEL Module Project     186
Creating the BPEL Process File     186
Navigating the BPEL Design Window     187
Creating the WSDL File     189
Navigating the WSDL Editor     193
Working with the BPEL Designer and the BPEL Mapper     194
Creating a Composite Application     202
Creating a Composite Application Project     202
Setting Composite Application Project Properties     203
Adding a JBI Module     204
Testing the Composite Application and BPEL Process     204
Summary     206
Creating UML Projects     207
Setting UML Options      207
New Project Properties     208
Presentation Properties     209
Round-Trip Engineering Properties     211
Navigating the UML Project Layout     212
Palette Window     212
UML Documentation Window     213
UML Properties Window     215
UML Design Center Window     215
Diagram Editor     216
Choosing a UML Project Type     217
Creating a Platform-Independent Model Project     218
Creating a Java-Platform Model Project     219
Reverse-Engineering a Java Project     223
Working with Model Elements     226
Adding Model Elements     226
Filtering Model Elements     227
Working with UML Diagrams     228
Creating Class Diagrams     229
Creating Activity Diagrams     232
Exporting Diagrams     234
Working with Diagram Layouts     235
Working with Design Patterns and Requirements     238
Viewing Design Patterns     238
Applying a Pattern     239
Creating Design Patterns     241
Importing Requirements     242
Generating Model Reports      242
Summary     244
The NetBeans Coding Experience
The Source Editor     247
Arranging and Navigating Files     247
Accessing Source Editor Options     248
The Source Editor Context Menu     248
The Source Editor Toolbar     253
Source Editor Keyboard Shortcuts     255
Using File Templates     256
Working with Templates     257
Adding and Creating Templates     259
Working in the Source Editor     260
Identifying Errors     260
Indenting Code     263
Creating and Running Macros     266
Using the Component Palette     269
Summary     271
Code Completion and Templates     273
Code Completion     273
Working with the Code Completion Box     273
Configuring Code Completion     275
Using Code Completion     278
Code Templates     283
Using Code Templates     283
Customizing Templates     285
Summary     288
Refactoring     289
Using NetBeans Refactoring Options     289
Move Class Refactoring     290
Rename Refactoring      291
Safely Delete Refactoring     292
Use Supertype Where Possible Refactoring     294
Move Inner to Outer Level Refactoring     294
Encapsulate Fields Refactoring     296
Pull Up Refactoring     300
Push Down Refactoring     301
Convert Anonymous to Inner Refactoring     303
Extract Method Refactoring     306
Extract Interface Refactoring     307
Extract Superclass Refactoring     308
Change Method Parameters Refactoring     310
Refactoring Keyboard Shortcuts     312
Refactoring with Jackpot     312
Adding a Jackpot Refactoring Query     312
Running a Jackpot Refactoring Query     314
Summary     315
NetBeans and Professional Software Development
Generating and Accessing Javadoc     319
Elements of Javadoc     319
Class Description     319
Class Tags     320
Class Member Variables     321
Constructors     321
Methods     322
Creating Javadoc in NetBeans     323
Using the Auto Comment Tool     323
Generating Project Javadoc     326
Configuring Javadoc Properties     326
Accessing Javadoc     327
Attaching to Libraries and Platforms     327
Viewing Context-Sensitive Javadoc     329
Searching Javadoc     330
Summary     331
Managing Version Control     333
Using CVS     333
Configuring a Project to Use CVS     334
Performing Common CVS Operations     338
Using Subversion     348
Installing Subversion     348
Performing Common Subversion Operations     348
Summary     352
Managing Compilation and Projects with Ant     353
Ant Tasks and Targets     353
Configuring Ant Properties in NetBeans     357
NetBeans Project Build Files     359
The build.xml File     359
The build-impl.xml File     361
The build-before-profiler.xml File     362
The profiler-build-impl.xml File     362
The File     363
Working with Targets     364
Running Targets     364
Debugging Targets     365
Summary     366
JUnit Testing     367
Creating a JUnit Test Case      367
Creating a New Test Class     367
Creating a Test for an Existing Class     369
Viewing the Test     372
Modifying the Test     373
Running JUnit Tests     374
Viewing Test Results     374
Generating Test Case Reports     375
Configuring JUnit Properties in NetBeans     377
Summary     378
Using Code Coverage Tools     379
Getting Started with Cobertura     379
Installing and Running Cobertura     380
Examining a Cobertura Report     380
Using Cobertura Functions     385
Using Cobertura in NetBeans     388
Integrating with the Project Build File     389
Creating Shortcuts to Ant Targets     391
Using the Unit Tests Code Coverage Viewer     393
Summary     394
Working with NetBeans Developer Collaboration Tools     395
Installing and Configuring the Collaboration Tools     395
Managing Accounts     396
Creating a New Account     397
Setting Up Existing Accounts     398
Modifying Accounts     399
Logging In with Multiple Accounts     400
Building Your Contacts List      400
Adding Contacts     400
Adding Groups     401
Conducting Collaboration Sessions     402
Joining Conversations     402
Using the Conversation Window     405
Sharing Projects and Files     407
Collaborative Tools Usage Scenarios     410
Team Coding     410
Fixing an Export-Controlled Web Application     410
Summary     411
Using NetBeans Database Tools     413
Connecting to Databases     413
Adding a Database Driver     413
Adding the New Database Connection     414
Working with Database Tables and Views     416
Creating a Table     416
Modifying a Table     417
Saving a Table Structure     418
Re-creating a Table     418
Creating a View     419
Displaying Table Data     420
Writing SQL     420
Using the SQL Command Window     420
Using SQL Templates     422
Linking a Database Schema to a Project     423
Configuring Database Connection Pools     424
Using the Apache Derby Database     426
Summary      427
Index     429

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews