in the name of god

Page 1

Brought to you by...

Get More Refcardz! Visit refcardz.com

#14

CONTENTS INCLUDE: n

About NetBeans IDE

n

Java Editor Overview

NetBeans IDE Java Quick Start Tutorial n

NetBeans Java Editor

Updated for NetBeans IDE 6.7

Keyboard Shortcuts and Code Templates n

n

By Geertjan Wielenga and Patrick Keegan

Hot Tips and more...

ABOUT NETBEANS IDE The NetBeans IDE has seen adoption snowballing over the past years, particularly with the introduction of a completely new, rewritten, slick Java editor with the 6.0 release. You’ll find this reference card helpful if you want to get as much out of the Java editor as its authors intended when creating it. It lists all the

keyboard shortcuts in carefully thought out categories and it provides a thorough exposition of optimal handling of Java code in the editor, covering viewing, navigation, source handling, and refactoring. Go to http://www.netbeans.org/downloads/ to get NetBeans IDE.

NetBeans Java Editor 6.7

www.dzone.com

JAVA EDITOR OVERVIEW

WHAT’S NEW FOR JAVA IN NETBEANS IDE 6.7 The following features are new in NetBeans IDE 6.7 and can be of particular use to you in the context of the Java editor. Integration with Issue Trackers, Build Systems, and Mailing Lists

Right-click an application in the Projects window and then you can save it to Kenai.com, where you can host your open source projects and code, as well as find and collaborate with developers of like mind. In the IDE, you can also search and open projects from Kenai.com and use the IDE to chat to others working on the same project.

Maven Enhancements

If you use Maven as your project’s build & dependency management system, NetBeans IDE 6.7 has several major enhancements for you. In particular, it provides a visual dependency graph for your POM files.

Other Enhancements

http://wiki.netbeans.org/NewAndNoteWorthy

DZone, Inc.

|

www.dzone.com


2

NetBeans Java Editor 6.7

Navigating through Source Code

NETBEANS IDE JAVA QUICK START TUTORIAL

Ctrl-O/Alt-Shift-O

Go to type/file

This tutorial provides a very simple and quick introduction to the NetBeans IDE workflow by walking you through the creation of a simple “Hello World” Java console application.

Ctrl-Shift-T

Go to related JUnit test, if any

Alt-O

Go to source

Ctrl-B

Go to declaration

1. Start NetBeans IDE. In the IDE, choose File > New Project (Ctrl-Shift-N).

Ctrl-G

Go to line

Ctrl-Shift-M

Toggle add/remove bookmark

2. In the New Project wizard, expand the Java category and select Java Application. Then click Next.

Ctrl-Shift-Period/Comma

Next/previous bookmark

Ctrl-Period/Comma

Next/previous usage/compile error

3. In the Name and Location page of the wizard, type "HelloWorld" in Project Name. Then click Finish.

Ctrl-Shift-1/2/3

Select in Projects/Files/Favorites

Ctrl-[

Move caret to matching bracket

Ctrl-K/Ctrl-Shift K

Next/previous word match

Alt-Left/Alt-Right/Ctrl-Q

Go backward/forward/to last edit

4. Because you have left the Create Main Class checkbox selected in the New Project wizard, the IDE has created a skeleton class for you. You can add the "Hello World!" message to the skeleton code by replacing the line:

Compiling, Testing, and Running

// TODO code application logic here

with the line:

System.out.println("Hello World!");

5. From the IDE’s menu bar, choose Run > Run Main Project (F6). The Output window should show you the "Hello World!" message.

KEYBOARD SHORTCUTS & CODE TEMPLATES

F9

Compile package/ file

F11

Build main project

Shift-F11

Clean & build main project

Ctrl-Q

Set request parameters

Ctrl-Shift-U

Create JUnit test

Ctrl-F6/Alt-F6

Run JUnit test on file/project

F6/Shift-F6

Run main project/file

Debugging

Finding, Searching, and Replacing

Ctrl-F5

Start debugging main project

Ctrl-Shift-F5

Start debugging current file

Ctrl-Shift-F6

Start debugging test for file (JUnit)

Shift-F5/F5

Stop/Continue debugging session

F4

Run to cursor location in file

F7/F8

Step into/over

Ctrl-F7

Step out

Ctrl-Alt-Up

Go to called method

Ctrl-Alt-Down

Go to calling method

Ctrl-F3

Search word at insert point

F3/Shift-F3

Find next/previous in file

Ctrl-F/H

Find/Replace in file

Alt-F7

Find usages

Ctrl-Shift-F/H

Find/replace in projects

Alt-Shift-U

Find usages results

Alt-Shift-H

Turn off search result highlights

Ctrl-R

Inplace Rename

Ctrl-F9

Evaluate expression

Ctrl-U, then U

Convert selection to uppercase

Ctrl-F8

Toggle breakpoint

Ctrl-U, then L

Convert selection to lowercase

Ctrl-Shift-F8

New breakpoint

Ctrl-U, then S

Toggle case of selection

Ctrl-Shift-F7

New watch

Alt-Shift-V

Paste formatted

Coding in Java Opening and Toggling Between Views Ctrl-Tab (Ctrl-`)

Toggle between open documents

Shift-Escape

Maximize window (toggle)

Ctrl-F4/Ctrl-W

Close currently selected window

Alt-Insert

Generate code

Ctrl-Shift-I

Fix all class imports

Alt-Shift-I

Fix selected class’s import

Alt-Shift-F

Format selection Shift lines left/right/up/down

Ctrl-Shift-F4/Ctrl-Shift-W

Close all windows

Alt-Shift Left/Right/Up/Down

Shift-F10

Open contextual menu

Ctrl-Shift-Up/Down

Copy lines up/down

Alt-Shift-D

Undock window

Ctrl/Alt-F12

Inspect members/hierarchy

Ctrl-4

Open Output window

Ctrl-/

Add/remove comment lines

Ctrl-8

Open Kenai Dashboard

Ctrl-E

Delete current line

DZone, Inc.

|

www.dzone.com


3

NetBeans Java Editor 6.7

Java Editor Code Templates, continued

Keyboard Shortcuts & Code Templates, continued Refactoring This table provides short descriptions of the refactoring operations that are available in the IDE, mostly from under the Refactoring menu and within the Java editor itself, when you right-click within it.

St

String

ab

abstract

bo

boolean

br

break

ca

catch (

cl

class

Refactoring Operation

Description

cn

continue

Rename

Enables you to change the name of a class, variable, or method to something more meaningful. In addition, it updates all source code in your project to reference the element by its new name.

df

default:

dowhile

do { } while (condition);

eq

equals

ex

extends

fa

false

fi

final

fl

float

forc

for (Iterator it = collection.iterator(); it.hasNext( );) { Object elem = (Object) it.next( ); }

fore

for (Object elem : iterable) { }

fori

for (int i = 0; i < arr.length; i++) { }

Introduce Variable, Constant, Field, or Method

Enables you to generate a statement based on the selected code and replace that block of code with a call to the statement.

Change Method Parameters

Enables you to add parameters to a method and change the access modifier.

Encapsulate Fields

Generates a getter method and and a setter method for a field and optionally updates all referencing code to access the field using the getter and setter methods.

Pull Up

Moves methods and fields to the superclass.

Push Down

Moves inner classes, methods, and fields to all subclasses of their current class.

fy

finally

Move Class

Moves a class to another package or into another class. In addition, all source code in your project is updated to reference the class in its new location.

ie

interface

ifelse

if (condition){ }else { }

Copies a class to the same or a different package.

im

implements

iof

instanceof

Moves an inner class one level up in hierarchy.

ir

import

Converts an anonymous class to an inner class that contains a name and constructor. The anonymous inner class is replaced with a call to the new inner class.

le

length

newo

Object name = new Object(args);

pe

protected

Creates a new interface from the selected public non-static methods in a class or interface.

pr

private

psf

private static final

psfb

private static final boolean

psfi

private static final int

psfs

private static final String

pst

printStackTrace();

psvm

public static void main(String[ ] args){ }

pu

public

re

return

serr

System.err.println ("|");

sout

System.out.println ("|");

st

static

sw

switch (

sy

synchronized

tds

Thread.dumpStack();

th

throws

trycatch

try {} catch (Exception e) {}

tw

throw

twn

throw new

wh

while (

whileit

while (it.hasNext()) { Object elem = (Object) it.next(); }

Copy Class Move Inner to Outer Level Convert Anonymous Class to Inner

Extract Interface

Extract Superclass

Creates a new abstract class, changes the current class to extend the new class, and moves the selected methods and fields to the new class.

Use Supertype Where Possible

Changes code that references the selected class (or other type) to instead use a supertype of that type.

Safely Delete

Checks for references to a code element and then automatically deletes that element if no other code references it.

When typing in the Source Editor, you can generate the text in the right-column of the following list by typing the abbreviation that is listed in the left-column and then pressing Tab.

Java Editor Code Templates En

Enumeration

Ex

Exception

Ob

Object

Psf

public static final

Psfb

public static final boolean

Psfi

public static final int

Psfs

public static final String

DZone, Inc.

|

www.dzone.com


By geertjan Created 2008/01/16 - 10:13pm

4

NetBeans Java Editor 6.7

The following are some of the many cool NetBeans IDE 6.0 keyboard shortcuts that no programmer will be able to do without, once you know they're there. Not all of these are new in 6.0, some were there before, but deserve to be highlighted because often they're overlooked. 10 Handy Editor Shortcuts in NetBeans IDE 6.0

Mac OS Keyboard Shortcuts In most cases, working with the IDE on the Mac is no different from working on other operating systems. Two significant differences do exist, however. Firstly, the Options window on the Mac is found under NetBeans > Preferences. Secondly, the About box is under NetBeans > About.

10 Handy Editor Shortcuts in NetBeans IDE 6.0 By geertjan Created 2008/01/16 - 10:13pm

Scrolling and Selecting Keys

Action

Cmd-[

Moves the insertion point to the highlighted matching bracket. Note that this shortcut only works when the insertion point is located immediately after the opening bracket.

Cmd-Shift-[

Selects the block between a pair of brackets. Note that this shortcut only works when the insertion point is located immediately after either the opening or closing bracket.

Ctrl-G

Jumps to any specified line.

Cmd-A

Selects all text in the file.

The following are some of the many cool NetBeans IDE 6.0 keyboard shortcuts that no programmer will be ableinner/outer to do without, once you know they're there.you Notpress all ofAlt-Shift-Period, these are new inthe 6.0,selection some were 2. Capture syntactic element. Each time there before, but deserve to be highlighted because For often they're overlooked. expands to a successively wider syntactic element. example, below one statement was selected, 2. Capture inner/outer syntactic element. Each time you the key combination Alt-Shift-Period was pressed, and then the complete content of the surrounding 1. Move/copy up/down. Press Ctrl-Shift-Up the current selection is copied the lines right block statement was shown to be selected. Theand selection expands the currenttostatement to press Alt-Shift-Period, the selection expands tofrom a instead succes- above the current Alt instead of Ctrl and and, it is moved of copied. Press class Down surrounding blockselection. statementsPress to the surrounding method from there, to the surrounding instead of Up and the lines of code will be copied below the current selection, as below: and further. To successively the selection, press Alt-Shift-Comma, instead of sively wider syntactic narrow element. Alt-Shift-Period.

Code Folding Keys

Action

Cmd-Minus (-)

Collapses the block of code in which the insertion point is currently located.

Cmd-Plus (+)

Expands the block of code which is adjacent to the insertion point.

Cmd-Shift-Minus (-)

Collapses all blocks of code in the current file.

Cmd-Shift-Plus (+)

Expands all blocks of code in the current file.

http://netbeans.dzone.com/print

1. Move/copy up/down. Press Ctrl-Shift-Up and the current selection is copied to the lines right above the current selection. Press Alt instead of Ctrl and it is moved instead of copied. Press Down of UpEditor and the lines of code will be copied below the current selection, as below: 10 instead Handy Shortcuts, continued Published on NetBeans Zone (http://netbeans.dzone.com)

For example, below one statement was selected, the key combination Alt-Shift-Period was pressed, and then the complete content of the surrounding block statement was shown to be selected.

The selection expands from the current statement to sur rounding block statements to the surrounding method and, 2. Capture inner/outer syntactic element. Each time you press Alt-Shift-Period, the selection from there, to the surrounding classFor and further. expands to a successively wider syntactic element. example, below To onesuc statement was selected, the key combination Alt-Shift-Period was pressed, and then the complete content of the surrounding cessively narrow the selection, press Alt-Shift-Comma, of to block statement was shown to be selected. The selection expands from theinstead current statement surrounding block statements to the surrounding method and, from there, to the surrounding class Alt-Shift-Period.

and further. To successively the you selection, press Alt-Shift-Comma, instead of of code, such 3. Generate code skeletons. narrow Whenever want to generate commonly needed pieces Alt-Shift-Period.

1 of 4

4/21/08 10:44

Cutting, Copying, Pasting, and Deleting Text Keys

Action

Cmd-Z

Undo. Reverses a series of editor actions one at a time (excluding Save).

Cmd-Y

Redo. Reverses a series of Undo commands one at a time.

Cmd-X

Cut. Deletes the current selection and places it on the clipboard.

Cmd-C

Copy. Copies the current selection to the clipboard.

Cmd-V

Paste. Pastes the contents of the clipbard at the insert point.

Backspace Delete

Deletes the current selection.

Cmd-E

Deletes the current line.

Cmd-K

Copies the word preceding the insertion point and then pastes it after the insertion point (the insertion point must be in the whitespace preceeding or following a word). Press K multiple times to cycle through preceding words in succession.

Cmd-Shift-K

Copies the word following the insertion point and pastes it at the insertion point (the insertion point must be located in the whitespace preceeding or following a word.) Press L multiple times to cycle through consecutive following words.

3. Generate code skeletons. Whenever you want to generate commonly needed pieces of code, such

3. Generate code skeletons. Whenever you want to generate commonly needed pieces of code, such as constructors, of 4 4/21/08 10:44 101Handy Editor Shortcuts in NetBeans IDE 6.0 http:// getters, and setters, simply click Alt-Insert, and a small popup appears with a list of items from which you can select: as constructors, getters, and setters, simply click Alt-Insert, and a small popup appears items from which you can select:

10 Handy Editor Shortcuts in NetBeans IDE 6.0

http://netbeans.dzo

as constructors, getters, and setters, simply click Alt-Insert, and a small popup appears with a list items from which you can select:

To Change Default Settings:

4. Inplace rename. If you want to change a variable, method, or other item, of which m are usedrename. in your code, press Ctrl-R, and youa will see that all instances of the item turn b 4. Inplace If you want to change variable, method, same time, as shown below. Now, when you change the selected item, all the other ins oratother item, ofuntil which than one are used your rename mode come the same time, youmore press Escape, at which pointinthe inplace code, press Ctrl-R, and you will see that all instances of the item turn blue at the same time, as shown below. Now, when you change the selected item, all the other instances change atrename. the same time, youapress Escape, which of which more than o 4. Inplace If you wantuntil to change variable, method, at or other item, are used your code,rename press Ctrl-R, and comes you will see that end. all instances of the item turn blue at the point thein inplace mode to an

1. Choose Tools > Options from the main menu. 2. For code templates, select Editor and click the Code Templates tab. Here you can also change the expansion key, from Tab to something else. 3. For keyboard shortcuts, select Keymap and choose a profile from the Profile drop-down list.

same time, as shown below. Now, when you change the selected item, all the other instances chan at the same time, until you press Escape, at which point the inplace rename mode comes to an end

10 HANDY EDITOR SHORTCUTS 1. Move/copy up/down. Press Ctrl-Shift-Up and the current selection is copied to the lines right above the current selection. Press Alt instead of Ctrl and it is moved instead of copied. Press Down instead of Up and the lines of code will be copied below the current selection, as below: DZone, Inc.

5. Add/Remove comment lines. Select one or more lines, press Ctrl-/ and then the sel commented out, as shown below. Press the same keys again and the commented lines be commented. This was, of course, also possible in previous releases, but previously different keyboard shortcuts, one for commenting and one for uncommenting. Now tha been combined into one shortcut, you can quickly toggle between comment and uncom makes this activity much faster and more efficient.

|

5. Add/Remove comment lines. Select one or more lines, press Ctrl-/ and then the selected lines commented out, as shown below. Press the same keys again and the commented lines will no lon be commented. This was, of course, also possible in previous releases, but previously there were www.dzone.com different keyboard shortcuts, one for commenting and one for uncommenting. Now that they hav been combined into one shortcut, you can quickly toggle between comment and uncomment, whic


same time, as shown below. Now, when you change the selected item, all the other instances change at the same time, until you press Escape, at which point the inplace rename mode comes to an end. 5

NetBeans Java Editor 6.7

10 Handy Editor Shortcuts, continued

8. Jump to last edit. Often, you find yourself in a situation where you have edited in one document, while you 5. Add/Remove comment lines. Select one or more lines, currently find yourself in a completely different document. How do you get back to the place where you were last press Ctrl-/ and then the selected lines are commented 5. Add/Remove comment lines. Select one or more lines, press Ctrl-/ and then theyour selected lines areis likely to be the place where you editing code? That out, as shown below. commented out, as shown below. Press the same keys again and the commented lines will noedit. longer 8. Jump to last find yourself a situation where you have want to get back to, inOften, order you to do some morein editing. be commented. This again was, ofand course, possible inlines previous releases, but previously were find two yourself in a completely different document. How d while you there currently Press the same keys the also commented will no Now, whenever click Ctrl-Q, the last edited document different keyboard shortcuts, one for commenting and one for uncommenting. Now that they have place where youyou were last editing your code? That is likely to be the place w longer be commented. isto, found, and the cursor landsediting. on the Now, line where the last been combined into one shortcut, you can quickly toggle between comment and uncomment, which in order to do some more whenever you click Ctrl-Q, the l makes this activity much faster and more efficient. edit took Alternatively, can where click the found, andplace. the cursor lands on you the line thebutton last edit took place. Alterna button below, shown in below, in the left of corner of the Source shown the top left top corner the Source Editor:Editor:

6. Inspect members/hierarchy. Both the members of the current class as well as its hierarchy can be 6. Inspect members/hierarchy. Both the members of the of the current file are shown. On the displayed and then filtered. Press Alt-F12 and the ancestors other hand, Ctrl-F12, the can current members current class ifasyou wellpress as its hierarchy be file's displayed andare displayed, as shown here: then filtered. Press Alt-F12 and the ancestors of the current 9. Bookmarks. When Ctrl-Shift-M, the current 9. Bookmarks. When you you presspress Ctrl-Shift-M, the current line line is "bookmark file are shown. you can later quickly cycle back/forward it (with isthat “bookmarked”. What this means is that youtocan later Ctrl-Shift-Period an bookmarked line gets a small the left sidebar,and as shown below, until On the other hand, if you press Ctrl-F12, the current file’s quickly cycle back/forward to iticon (withinCtrl-Shift-Period on the line again, to remove the bookmark: 10 Handy Editor Shortcuts in NetBeans IDE 6.0 http://netbeans.dzone.com/print/280 Ctrl-Shift-Comma). The bookmarked line gets a small members are displayed, as shown here: iconShortcuts in the left sidebar, IDE as shown below, until you press 10 Handy Editor in NetBeans 6.0 Ctrl-Shift-M on the line again, to remove the bookmark: 10 Handy Editor Shortcuts in NetBeans IDE 6.0

http://netbeans.dzo

3 of 4 2 of 4 10 Handy Editor Shortcuts in NetBeans IDE 6.0

4/21/08 10:44 AM http://netbeans.dzone.com/print/280

Highlight exit points. Place the cursorononthe thereturn returntype type and you will im 10.10. Highlight exit points. the cursor 10. Highlight exit points. PlacePlace the cursor on the return type and you will immediately see all exi points highlighted: points andhighlighted: you will immediately see all exit points highlighted:

7. Switch between documents. When you have multiple documents open at the same time, press Ctrl and Tab, and then a small popup appears. You can scroll through the popup, which displays all 7. Switch between documents. When you have multiple the open documents, and then choose the document that you want to open:

documents open at the same time, press Ctrl and Tab, and then a small popup appears.

You can scroll through the popup, which displays all the open documents, and then choose the document that you want to 7. Switch between documents. When you have multiple documents open at the same time, press open: Ctrl and Tab, and then a small popup appears. You can scroll through the popup, which displays all the open documents, and then choose the document that you want to open:

Source URL: http://netbeans.dzone.com/news/10-handy-editor-shortcuts-netbeans-ide-60

QUICK OPTIONS WINDOW OVERVIEW

Options lets you customize NetBeans IDE in a numSource 8. Jump to last edit. Often, you find yourself in a situation where youThe have editedURL: inwindow onehttp://netbeans.dzone.com/news/10-handy-editor-shortcuts-ne document, ber of ways. Most people while you currently find yourself in a completely different document. How do you get back to the don’t know how much can place where you were last editing your code? That is likely to be the place where you want to get back be customized there. to, in order to do some more editing. Now, whenever you click Ctrl-Q, the last edited document is found, and the cursor lands on the line where the last edit took place. Alternatively, you can click the button shown below, in the top left corner of the Source Editor: General Sets the IDE-wide browser and the Web Browser n

proxy settings.

8. Jump to last edit. Often, you find yourself in a situation where you have edited in one document, Editor Sets the editor-specific options, while you currently find yourself in a completely different document. How do you get back to thethose relating to code specifically place where you were last editing your code? That is likely to be the place where you want to get folding, codeback completion, camel case URL: to, in order Source to do some more editing. Now, whenever you click Ctrl-Q, the last edited document is behavior, indentation, code templates, found, and the cursor lands on the line where the last edit took place. Alternatively, you and canmacros. click the http://netbeans.dzone.com/news/10-handyFYI button shown below, in the top left corner of the Source Editor:

editor-shortcuts-netbeans-ide-60

9. Bookmarks. When you press Ctrl-Shift-M, the current line is "bookmarked". What this means is that you can later quickly cycle back/forward to it (with Ctrl-Shift-Period and Ctrl-Shift-Comma). The | www.dzone.com bookmarked line gets a small icon in the left sidebar, asDZone, shown Inc. below, until you press Ctrl-Shift-M on the line again, to remove the bookmark:

Proxy Settings

n

Code Folding Code Completion n Camel Case Behavior n Indentation n Code Templates n Macros n n


6

Quick Options Window Overview, continued

Keymap

Sets the fonts and colors for syntax, highlighting, annotations, and diff viewer. Sets the keyboard profile to be used throughout the IDE. By default, profiles are provided for NetBeans, Eclipse, and Emacs. A legacy profile is also provided, for NetBeans 5.5 keyboard shortcuts, which were radically rewritten in NetBeans IDE 6.0.

Miscellaneous

RESOURCES

Syntax n Highlighting n Annotations n Diff n

NetBeans Profile Eclipse Profile n Emacs Profile n NetBeans 5.5 Profile n n

Sets the options for Ant processing, appearance, diffing, the Matisse GUI Builder, JavaScript, Profiler, ToDo Tasks, and Versioning.

Ant Appearance n Diff n GUI Builder n Profiler n ToDo Tasks n JavaScript n Versioning

Resource

URL

NetBeans DZone Community

http://netbeans.dzone.com/

NetBeans Tutorials

http://www.netbeans.org/kb/index.html

NetBeans Video Tutorials

http://www.netbeans.org/kb/60/screencasts.html

NetBeans Blogs

http://planetnetbeans.org/

NetBeans TV

http://netbeans.tv/

NetBeans Weekly Newsletter:

http://www.netbeans.org/community/news/ newsletter/latest.html

n n

ABOUT THE AUTHORS

Thanks to the following people who kindly gave of their time and expertise in reviewing this refcard: Adam Bien, Tonny Kohar, Varun Nischal, Kristian Rink, and Tom Wheeler.

RECOMMENDED BOOKS

Geertjan Wielenga is the NetBeans technical writer responsible for documentation related to the NetBeans Java editor. He is co-author of the book Rich Client Programming: Plugging into the NetBeans Platform. He is known for his popular blog at http://blogs.sun.com/geertjan, as well as for his role as a Zone Leader at Javalobby. Patrick Keegan has been writing about the NetBeans IDE for over 9 years. In addition to writing help and tutorials, he is co-author of the NetBeans IDE Field Guide and has contributed to other books on NetBeans and Java.

t to

ugh

Bro

you

BUY NOW

books.dzone.com/books/pronetbeans books.dzone.com/books/definitive-guide-netbeans

Professional Cheat Sheets You Can Trust

by...

rns e t t n Pa g i s De

“Exactly what busy developers need: simple, short, and to the point.”

ld ona McD son a J By

z.co

m

#8

ired Insp e by th GoF ller se Best

E: LUD IN C ility TS EN nsib NT spo CO f Re o in d Cha man Com reter rp Inte tor ... ore Itera tor dm dia d an Me rver tho se Me S Ob RN plate TTE Tem

Cha

Mo

ef re R

c

n

Get

con

tinu

ed

sn’t

r doe

ndle e ha

d th

st an

que

re le a

have

James Ward, Adobe Systems

to r

ndle

e ha

ith th

st w

ue req

ome.

in

the e to renc refe listed in ick s A cta qu s, a s NP je rn e b e IG vid s, patt able O pro DES ram . ign us ard UT des diag le f Re refc r oF) ABO mp ts o lass oke erns exa Inv ur (G lemen es c d o Patt d h rl F n f o ig suc s: E inclu go al w n rn Des rn c D a e re e is je ts tt G g AN Th patt , and a t ob mentin l 23 sign Pa M c a h u c M in tr e nd Ea tion ple CO orig ma ons kD re. rma om to c their im boo Softwa nt teC info ed cre Clie the d age : Us d from nd Con () ente on, us ma r ns ct cute Ori Com ) ti uple atte s bje ( +exe low eo lana al P e deco is al p n rg cute ch x o la e . Th s su ati +exe ts. rm an b bject nship c c fo Cre je y an o tio e to ob d as ed rela ms, t th ed eate as rith tha arate : Us be tr ject b ts. m. r ns disp algo c r it to lly ob e te y e e je g s n tt g iv b a sy win ona Pa ana allo traditi s. Rece en o ral en m der uest to m betwe ctu twe nt or req ndled in n. sa sed s varia Stru s be . late catio e ha can s: U or in ilitie psu invo to b llbacks cture that the times Enca quest nsib ca ttern y. stru ips ling re and riant nalit l Pa d respo ing the nsh hand ra pose uing nctio led at va o ct ur cess be fu ue ti io n je P la ob pro av nd ack ,a as q to e the t re e ha eded. b callb nous nality c Beh nships b m ed n ro je ed to fro a ne d y ne ob ynch nctio tio You ne s need at c sts is couple ut an is e as the fu st rela with que s th it itho de e th ar Reque y of re litat pattern ssing w tation articul eals ld be ship or faci p d en ce Use shou tion e: D A hist e. n ed to mman for pro implem ents its ting. ker rela cop runtim co y us m type invo Whe s al pec S e el le e ue s to tu p ex th t id Th ue w ac cla Pro at d im jec ue is are utilizing a job q of the C ueue e que Ob ues with y ged enq dge th que s. B en to han eals me. c roxy Job orithm be giv knowle that is terface D P e : g ct b n ti e in S r le of al ed ca to have d obje of the er mp cop pile rato ut an Exa serv nes ss S at com exec e queue comm Deco Ob confi S Cla e th B d the n . Th for de nge king leto ithin invo hm w Faca cha Sing od tory

Refcardz.com

n

n

n

.com

n

z w. d

one

DZone communities deliver over 6 million pages each month to C

Fac ract Abst r pte Ada

S

C

Meth tory Fac t eigh Flyw r rete rp Inte B tor Itera

C

algo

State

B

rit

y od Meth plate Tem

Stra

teg

more than 3.3 million software developers, architects and decision ww

S

B

S

Build

C

S

e ridg

er

B

B

B

B

r

Visit

or

makers. DZone offers something for everyone, including news, B

f in o ty Cha nsibili o Resp d man m o C B te si po Com

Me

B

B

diato

Me

m

ento

Ob

ject

Beh

ral

avio

Y tutorials, cheatsheets, blogs, feature articles, source code and more. ILIT NSIB S

P RES

O

succ

ess

or

O AIN “DZone is a developer’s dream,” says PC Magazine. CH F

>> ace terf r <<in andle H st ( ) que lere d n +ha

Upcoming Titles

Most Popular

Java Performance Tuning Eclipse RCP Java Concurrency Selenium ASP.NET MVC Framework Virtualization Wicket

Spring Configuration jQuery Selectors Windows Powershell Dependency Injection with EJB 3 Netbeans IDE JavaEditor Getting Started with Eclipse Very First Steps in Flex

DZone, Inc. 1251 NW Maynard Cary, NC 27513

ISBN-13: 978-1-934238-60-8 ISBN-10: 1-934238-60-0

50795

888.678.0399 919.678.0300 Refcardz Feedback Welcome refcardz@dzone.com Sponsorship Opportunities sales@dzone.com

9 781934 238608

s

Copyright © 2009 DZone, Inc. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, r2 nt dle Clie Han ete publisher. photocopying, or otherwise, without prior written permission Cof the Reference: st ( ) oncr que

ern

a rd

it ! V is arz

re f c

n

n

ity,

Download Now

n

n

ibil

nd le a outc ay ha an tial hand sm hen oten ject le to . .W le p le ob tern ethod bject be ab tab pat ultip ecific o should cep n M this if the m up the s sp an ac ents ject ime. see passed d is be a plem ks to de to of ob at runt handle e im t co b Use ec se til ld ch ges t n A n ined being shou peats un paren ime ngua erm Whe not e la the runt or if it det ore s re uest som d tion proces e no m req g in metho cep n A e e ar a ndlin e ex ack th ther n ha rown in ndle th ll st until ptio th e ca Exce ion is sm to ha up th tered or ral pt ni ed un le ce ss avio co ex mp echa n pa Beh . is en am Exa he tion uest to has ack. W ject q cep st Ob e re e ex call le th nd th hand s to ha ct obje

n

n

e of R

ns spo

The Definitive Guide to NetBeans™ Platform is a thorough and definitive introduction to the NetBeans Platform, covering all its major APIs in detail, with relevant code examples used throughout.

Pro NetBeans IDE 6 Rich Client Platform Edition focuses on the new features of NetBeans 6 as well as what has changed since NetBeans 5.5, empowering you to be a more effective and productive developer.

Con

cre

teH

1 ler

and () uest

+ha

ndle

re

le a

hand

uest

req

ki by lin

ng

|

ww

z w.d

one

.c o

m

$7.95

Fonts & Colors

NetBeans Java Editor 6.7

Version 1.0


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.