index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... ·...

22
Symbols - (minus sign) in filenames of layer files, 489 in .instance files, 88–89 : colon in manifest files, 276–278, 367 in warning and error lines, 482 / (forward slash) as directory separator, 81 in hyperlinks, 362 in ordering attributes, 79 . (dot), in .instance files, 88–89 " (double quote), for filenames in command line, 470 () (parentheses), in regular expressions, 482 [] (square brackets), in regular expressions, 482 {} (curly braces), in localized strings, 570 * (asterisk) for marking unsaved files, 516 in regular expressions, 482 \ (backslash) as directory separator, 81 as escape symbol, 470, 482 & (ampersand), in mnemonics, 570–571 + (plus sign), in regular expressions, 482 A AbsoluteLayout class, 252 AbstractAction class, 190–191 AbstractLookup class, 59–61, 176 AbstractNode class, 166, 169, 173 access modifiers, 17 Action class, 75, 98, 163, 190–199, 313 registry of, 87, 100 Action Type panel, 85, 342, 466 Action wizard, see New Action actionPerformed() method, 31, 321 actions, 190–199 adding to menus, 84–88, 190, 196, 217 palettes, 311, 332–335 toolbars, 190, 196 always enabled, 85, 342 conditionally enabled, 517 context-sensitive, 63, 197–199 creating, 6 default, 294, 527 for hyperlinks, 356 installing, 196–197 keybindings for, 196–197 standard, 195–196 Actions API, 195–196 583 Index

Upload: truonghanh

Post on 06-Mar-2018

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

Symbols- (minus sign)

in filenames of layer files, 489in .instance files, 88–89

: colonin manifest files, 276–278, 367in warning and error lines, 482

/ (forward slash)as directory separator, 81in hyperlinks, 362in ordering attributes, 79

. (dot), in .instance files, 88–89" (double quote), for filenames in command

line, 470() (parentheses), in regular expressions, 482[] (square brackets), in regular expressions,

482{} (curly braces), in localized strings, 570* (asterisk)

for marking unsaved files, 516in regular expressions, 482

\ (backslash)as directory separator, 81as escape symbol, 470, 482

& (ampersand), in mnemonics, 570–571+ (plus sign), in regular expressions, 482

AAbsoluteLayout class, 252AbstractAction class, 190–191AbstractLookup class, 59–61, 176AbstractNode class, 166, 169, 173access modifiers, 17Action class, 75, 98, 163, 190–199, 313

registry of, 87, 100Action Type panel, 85, 342, 466Action wizard, see New ActionactionPerformed() method, 31, 321actions, 190–199

adding tomenus, 84–88, 190, 196, 217palettes, 311, 332–335toolbars, 190, 196

always enabled, 85, 342conditionally enabled, 517context-sensitive, 63, 197–199creating, 6default, 294, 527for hyperlinks, 356installing, 196–197keybindings for, 196–197standard, 195–196

Actions API, 195–196

583

Index

Page 2: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

Actions/ folder, 87, 99–100, 217actionsGlobalContext() method,

62–65, 128–129, 173, 221ActiveEditorDrop class, 344, 347–350Add Module Dependency window, 19, 109,

473add() method, 220addListDataListener() method, 118addNotify() method, 171, 184AddPolicy class, 167addPropertyChangeListener() method,

121–122, 227, 309, 333, 390Advanced Options window, 87, 100, 215,

370, 376, 384Advanced/ folder, 99AdvancedOption class, 388–389, 394allInstances() method, 45, 51–53allItems() method, 52–53ampersand, see &Annotatable interface, 378Annotation API, 465, 484Annotation class, 378, 485annotations, 367–384

attaching toline parts, 382–383lines, 379–381, 485

configuring, 487customizing, 370describing, 369, 377–379detaching, 379–381, 485, 490glyphs for, in the left sidebar, 367–369,

371, 484highlighting, 372, 383in HTML Tidy, 484–490installing, 376marks for, in the right sidebar, 367–368,

373–374, 484names of, 370, 378priority levels of, 375registering, 375–376tooltips for, 367, 378, 484underlining, 373

AnnotationTypes/ folder, 375

Apache’s Commons Logging library, 19–20API Versioning panel, 104, 219, 462APIs (Application Programming Interfaces)

creating, 542–544documentation on, 1evolving, 56factory, 104friend, 565–567not in Java code, 106partitioning, 108public, 565–567splitting from implementations, 555–559,

568See also by individual API

Application panel, 5, 8, 438applications

branding, 8, 171configurable settings of, 385creating, 4–6, 551–553designing, 18, 551–568distributing, 9, 12JavaHelp documentation for, 441rich client, 307, 457, 461splash screens of, 5, 9standalone, 435, 438, 450, 454titles of, 5, 438versioning, 13–15Web, 399See also software

applyChanges() method, 390, 396assign() method, 220associateLookup() method, 178,

180–181, 310asterisk, see *AsyncCompletionTask interface, 294attach() method, 378–379AudioInputStream class, 530AudioStation, 521–549

frequency-domain view in, 544–549multiview, 535–541plugging in additional views, 542–544WAV files in, 526–535

autoloads, see modules, autoload

Index584

Page 3: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

autoupdate descriptors, 453–454creating, 456–457, 462distributing URLs to, 453–454, 456,

458–461manually, 454, 459–461via a module, 454, 458–459

uploading, 457–458URLs of, 456

AWT components, 238, 250Palette Manager for, 341

AWT event thread, 117–121, 223, 231, 290,294, 296–297, 381, 578

Bbackslash, see \backward compatibility, 14, 58, 140, 217BASIC programming language, 16BeanInfo class, 199–201, 215BeanNode class, 166, 199–201Beans Binding Framework, 509BeanTreeView class, 178, 181, 184, 187,

195, 203–204dependencies for, 249

bookkeeping, 110, 118, 127BorderLayout class, 127, 204, 237, 251BoxLayout class, 252branding, 8, 171, 569

of help sets, 449–452branding/ folder, 449–450bridges, 36–37, 564bugfixing, 14, 16, 234, 367build servers, 229build/ folder, 158Bundle.properties file, 171, 275, 291,

357, 368actions in, 191annotations in, 369, 488localized strings in, 97, 147, 216, 570syntax highlighting in, 282Web framework support in, 401, 404

buttons, centering, 533

CcanAttach() method, 57–58cancel() method, 390

canCloseElement() method, 264, 270Card class, 167, 173–174CardComponent class, 184CardGameAction class, 191CardLayout class, 252, 424CardNode class, 173–174, 176, 182, 192,

199–202cards

drawing, 182icons for, 182Joker, 171visible, 175

Cards module, 169, 182, 200CardsDetailView class, 186–188, 194CardsUI module, 169, 191CardTemplate.myitem file, 316CardTopComponent class, 181, 184–188changedUpdate() method, 379ChangeListener class, 175, 192checkErrors() method, 381Children class, 164, 166, 173, 210ChoiceView class, 178CityLights-Properties-fontsColors.xml

file, 283.class files, 251Class class, 575Class2LayerFolder interface, 125ClassCastException, 28classes

accessing, 17associating with MIME types, 124–125having a getLookup() method, 53inner, 222loading, 575, 579–580multiple factory, 27name completion for, 297nested, 222private, 17public, 17, 90, 108, 565singleton, 556–557, 573See also by individual class

ClassPath class, 573ClassPathProvider interface, 53Clean action, 152, 158clear() method, 485, 490

585Index

Page 4: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

clearSelection() method, 309, 333clients, 28CloneableEditor class, 256, 261–263,

268–269, 344–345CloneableEditorSupport class, 260CloneableTopComponent class, 534close() method, 30, 139CloseCookie class, 528closed() method, 39CloseHandler class, 536–537closing() method, 30code completion, 101, 287–306, 439–440

documentation for, 287, 289–291, 296,304–305

narrowing as you type, 300tooltips for, 289–291, 294, 296, 305–306types of queries in, 291

Collection class, 173, 176colon, see :Common Palette API, 312compilers, 463

JST (Just In Time), 579CompletionDocumentation interface, 304CompletionItem interface, 292, 294,

296–299, 304CompletionProvider interface, 289–296,

300–303dependencies for, 292

CompletionProviders/ folder, 101CompletionResultSet interface, 294CompletionTask interface, 290component palettes, see palettescomponentActivated() method, 140,

180–181, 264componentClosed() method, 140, 204, 264componentDeactivated() method, 140,

180–181, 264componentHidden() method, 140, 264componentOpened() method, 140, 204,

263–264components, 137

absolutely positioned, 252activated, 138–139adding to the Palette window, 250–251

components (continued)aligning, 237–238, 240–242closing, 139customizing code for, 247–248default instances of, 147default spacing between, 238dragging in a window, 152groups of, 158–161IDs of, 145, 151lifecycle of, 264localized mnemonics for, 570matching help topics with, 445multiview, 253–271, 535–541opening, 138–139, 152persisting state across sessions, 145–158previewing, 250properties of, 244, 248–249saving, 140selected, 138–139size of, 242–243, 249See also by individual component

Components/ folder, 151, 160componentShowing() method, 264componentShown() method, 140Concurrent Versions System, see CVSconfig/ folder, 154configuration panels, 406–413

adding to WebFrameworkProvider,410–411

alternative vs. standard, 423–425coding, 411–413creating, 407–410

Connection wizard, 238–239, 244–246constructors, 579, 581context sensitivity, 135, 163–164ContextAwareAction class, 63, 197–198ConvertToUpperAction class, 499Cookie class, 219CookieAction class, 63, 197–199CookieSet class, 220Core module, 99–100Core—Component Palette, see Common

Palette API

Index586

Page 5: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

Core—MultiView Windows module, 256,526

Core—Navigator module, 100Core—UI module, 79, 84Core—Windows module, 51, 78, 98–99, 136create() method, 122, 260, 389, 485createCloneableMultiView() method,

267createCloneableTopComponent()

method, 534–536createContextAwareInstance()

method, 64createDefaultDragGestureRecognizer()

method, 331createDocumentationTask() method,

296, 304createElement() method, 261–263, 270createFile() method, 419createLinePart() method, 383createNodes() method, 172createPalette() method, 310–314, 343,

351createSheet() method, 167, 199, 201–202createTask() method, 293–294, 301createToolTipTask() method, 296,

305–306CreateWicketFiles class, 416, 419–421Creative Commons license, 168curly braces, see {}CustomSaveAction class, 198CVS (Concurrent Versions System), 35, 118,

247

Ddata flavors, 324, 326DataEditorSupport class, 256–258, 260,

275, 345, 376dependencies for, 234

DataFolder class, 571DataLoader class, 207, 211–218, 232, 253

class name prefixes for, 213skeleton, 212for specific file types, 212–213, 215, 275,

291, 358, 376DataNode class, 66, 318

DataObject class, 93–94, 113, 128–129, 133,207–213, 259–260, 319, 480–481, 497,528, 543, 571–572, 581

class name prefixes for, 213getting

a FileObject for, 469, 571objects that represent manifests,

218–219MIME type of, 94primary file of, 226skeleton, 212

Datasystems API, 79, 94, 99, 103, 203, 207,292, 314, 357, 521, 526

deadlocks, 121, 499, 578, 581debugging, see bugfixingDeck class, 167decoupling, 49–50defaultAction() method, 296–297DefaultCellRenderer class, 515DefaultListModel class, 118–119DefineWords module, 436DefineWordsSuite suite, 436delete() method, 84DemoAction class, 147DemoTopComponent class, 143–144,

147–152dependencies, 7, 13–15, 19, 108–109

adding to a module, 256classpath, 28compile-type, 567cyclic, 559–563functional, 28–29and hiding files, 84implementation, 565–567on library wrapper modules, 436simplifying, 557–558, 563

dependency injections, 42, 45, 50detach() method, 379Dialogs API, 234, 357, 526Dict module, 430–435Dict.jar file, 434, 436DictService, 430Diff window, 504–506diff() method, 504directories, see folders

587Index

Page 6: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

DiscardAction class, 536DocBook XML, 55docking modes, 140, 151Document class, 113, 257, 556DocumentBuilderFactory class, 41, 44DocumentListener class, 379doDragOver() method, 325–327doDrop() method, 325–326, 328–331DoEncode interface, 562–563dot, see .double quote, see "drag gestures, 330–331drag images, 326–328drag sources, 324, 331drag() method, 326–327DragAndDropHandler class, 311DragGestureEvent class, 324DragGestureListener class, 330dragGestureRecognized() method, 330drop targets, 324–326DropTarget class, 324DRY (Don’t Repeat Yourself) principle, 26DTDs

for annotations, 368–375for editor’s palette, 347, 350–351

EEditAction class, 257EditCookie class, 113, 257, 275, 376Editor API, 465Editor Code Completion API, 292Editor Code Folding API, 523–524Editor Library API, 357, 523–524, 526Editor MIME Lookup API, 100, 103,

123–125, 131, 523–524Editor Palette Item DTD, 347, 350–351Editor Utilities API, 523–524Editor/ folder, 488EditorCookie class, 113, 257, 275, 376editors, 135

associating with DataObjects, 259–260for images, 55infrastructure of, 257–261, 275, 344, 376multiple over the same file, 262

editors (continued)multiview, 253–271, 535–541

design view in, 269–271plugging in additional views, 542–544source view in, 261–268

opening files in, 113persisting files in, 147plain text, 254–256profiles for, 281syntax highlighting in, 273–286text-based, 287, 321, 344–353

annotating code in, see annotationserror checks in, 381

for WAV files, 521–522, 533–535converting to multiview, 535–541

Editors/ folder, 100–101, 106, 124–125,292

Emacs, 98–99, 196enableComponents() method, 410Encryptor class, 560–563enqueue() method, 120Env class, 258environments, 258Error Annotation DTD, 368–375error annotations, see annotationserror badge images, see icons, with a red "X"error glyphs, see annotations, glyphs forerror marks, see annotations, marks forerror-glyph.gif file, 371event handlers, 244–246

testing, 250event listeners, see listenersEventListener class, 122exec() method, 469Execution API, 464, 467, 469, 473ExecutionEngine class, 467, 469, 473, 476,

479expertCheckBoxItemStateChanged()

method, 337Explorer API, 67, 133, 138, 163–164, 169,

177–190, 203, 206, 249–250, 256, 517UI components available in, 178

ExplorerManager class, 177–181, 184,186–187, 189, 204

Index588

Page 7: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

ExplorerTestTopComponent class, 249extend() method, 401–402, 406–407,

411–416, 419, 422–423Externalizable interface, 140, 145

FFavorites window, 25, 78, 100, 525, 534Favorites/ folder, 100FFT (Fast Fourier Transform), 521, 545FFTComponent class, 546FFTGraph class, 545fftview module, 545FFTViewDescriptor class, 545, 548File class, 70–71, 473, 571File System API, see Filesystems APIFile Type wizard, see New File TypeFile wizard, see New FileFileChangeAdapter class, 226FileChangeEvent class, 77–78FileChangeListener class, 226FileObject class, 70–71, 90, 94, 165, 207,

210, 469, 473, 571attributes of, 71getting a DataObject for, 208, 571I/O streams of, 71listening for changes in, 71, 225manipulating, 93MIME type of, 71

filesconcept of, 207of custom types, 234–235and dependencies, 84editing, 101, 113, 133, 253, 256hiding, 81, 83I/O, 117–118, 208, 221icons for, 211instance, 84locking, 258modified, 472, 481, 497–498, 515opening, 113parsing, 133, 208primary, 226programmatic access to, 207renaming, 226restoring after restart, 77retrieving names of, 469–470

files (continued)saving, 50, 63, 195, 197

automatically, 497, 518selected, 126–129standard actions on, 79templates for, 6tokenizing, 274tracking, 104unsaved modifications in, 497, 516, 518validating, 133visual representation of, 254, 269See also by individual file

Files window, 99, 129, 154, 156, 164, 215,217, 234, 434–435, 450, 456, 474

expanding a folder in, 210FileSystem interface, 70–73filesystems

layered, 72–73mounting, 69virtual, 70XML, 73–75

Filesystems API, 70, 203, 207, 226, 292, 357,414, 473, 526

FileUtil class, 93, 469, 473, 571FilterNode class, 165–167, 184, 188–190,

195find() method, 113, 208, 210–211, 571findClassPath() method, 573–574findDefault() method, 145findFolder() method, 571firePropertyChange() method, 379firewalls, 434fixed() method, 175, 573FlowLayout class, 251, 533FolderLookup class, 94–95, 572FolderMapper class, 125folders

accessing, 93expanding in the Files window, 210getting objects of a given type from, 94–95names of, 96–98, 125representing, 165root, 70, 525of URLs, 91See also by individual folder

Fonts and Colors panel, 281–282

589Index

Page 8: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

for statement, 16forceSave() method, 518.form files, 147, 240, 247Form Editor window, 238–239, 244, 247, 250Form module, 36Form Tester window, 239forms, see components, windowsFortran programming language, 16forward slash, see /FrameworkConfigurationPanel class,

407, 409frameworks, see Web frameworksFrameworks panel, 400–402, 405–406, 411,

422selecting libraries in, 423–424

GGame interface, 171GameChildren class, 169–170, 173garbage collection, 51, 53, 111, 122, 227, 576

instant, 122General Update Center window, 460–461generateCommandLineArguments()

method, 509generics, see Java genericsget() method, 111, 195getActions() method, 163, 192, 270getAnnotationType() method, 370, 378,

485getAppClass() method, 412–413getAttachedAnnotatable() method, 379getAttribute() method, 91getAudioFormat() method, 530getAutoQueryTypes() method, 290, 293,

300getBeanInfo() method, 166getCard() method, 201getClassPath() method, 55getComponent() method, 390, 412–413,

515getConfigurationFiles() method, 401getConfigurationPanel() method,

401–402, 410getCookie() method, 65–66, 197, 209, 219,

221deprecating in the future, 223

getDefault() method, 44–45, 50–51, 148,224, 557

getDefaultFileSystem() method, 93getDescription() method, 401getDisplayName() method, 174–175, 182,

262–263, 269, 389getElementAt() method, 118getErrorStream() method, 499getExplorerManager() method, 177,

179–180, 204getFile() method, 258getFileObject() method, 572getGotoSourceAction() method, 304getHelpCtx() method, 262–263, 270, 390getHtmlDisplayName() method, 175, 515getHyperlinkSpan() method, 356, 361getIcon() method, 182, 189–190, 223, 262,

269getInputStream() method, 71, 499getInsertPrefix() method, 297getIO() method, 476getLookup() method, 50, 53, 62, 66,

138–139, 173, 209, 264, 270, 390getMainWindow() method, 141getManifest() method, 218–221, 223, 225getMessage() method, 171getMIMEType() method, 123getName() method, 178, 401, 468getNodeDelegate() method, 66, 165, 210,

571getOriginal() method, 481getOutputStream() method, 499getOwner() method, 573getPersistenceType() method, 145–147,

181, 262, 269getPreferredWidth() method, 296getPrimaryFile() method, 469, 571getResult() method, 500getRoot() method, 309, 323, 333, 343getRowFirstNonWhite() method, 303getSelectedCategory() method, 309,

333getSelectedItem() method, 309, 333getShortDescription() method, 378,

485getSize() method, 118

Index590

Page 9: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

getSortPriority() method, 297getSortText() method, 297getText() method, 304getToolbarRepresentation() method,

264, 268, 270getTooltip() method, 389getTypedComponent() method, 412–413getUndoRedo() method, 270getURL() method, 304getVisualRepresentation() method,

264, 268, 270GlyphGutterActions/ folder, 101GOTO statement, 16graphical user interfaces, see GUIsGraphics2D class, 56–57GridBagLayout class, 154, 237, 251GridLayout class, 251GroupLayout class, 127, 237, 251–252Groups/ folder, 159GUI Builder, 141, 158, 177, 204, 249, 253,

388, 493, 506layout managers in, 127, 237–243

GUI Registration panel, 342, 466GUIs (graphical user interfaces), 237–252

based on property sheets, 205–206creating, 240customizing, 25, 552designing, 206internationalization of, 36See also components, menus, windows

Hhelp sets, 441

branding, 449–452creating, 442–445IDE’s, 446–448indexes for, 444–445order of, 449registering in layer files, 446tables of contents for, 444–445titles of, 449, 451–452

help topicsadding to help sets, 444–445built-in, 441default, 449, 451–452matching with UI components, 445

Help window, 444HelpCtx class, 445highlight file, 383Hollywood principle, 42home.class file, 422-hs.xml files, 444HTML, 175

checking markup in, see HTML Tidydefault palette for, 308Palette Manager for, 341WYSIWYG design tools for, 400

HTML Tidy, 463–519adding support for JSP, 474binaries of, 464, 491–496calling from IDE, 464–475checking markup in, 464–468, 472, 474configuring, 465, 505–519converting files in, 465, 518dependencies for, 473diffs in, 504–506errors and warnings in, 464, 476

annotated, 465, 484–490linked to Source Editor, 476, 479–481,

483–484fixing markup in, 496–505formatting HTML files in, 503–504installing in IDE, 473line numbering in, 481output parsing in, 464–465, 481–484running, 469–472

in a separate thread, 465, 467–468unsaved files in, 497, 516, 518

HTML Tidy Configuration wizard, 505–517Hudson tool, 229HyperlinkProvider class, 356–359HyperlinkProviders/ folder, 101hyperlinks, 101, 355–365, 476, 479–481,

483–484behavior of, 361–364determining where they should be,

360–361length of, 361relative, 362retrieving line and column numbers,

480–481hyphen, see -

591Index

Page 10: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

II/O (Input/Output), 117–118, 578, 581I/O API, 357, 465, 479, 556IconFilterChildren class, 189–190IconFilterNode class, 189–190icons

with a red “X”, 223–227alternate, 188–189branding, 224for files, 211for CompletionItems, 294loading, 571for .mf files, 213, 217for palettes, 314–320, 347size of, 182, 188, 316, 320for WAV files, 526

IconUpdateChecker class, 226IconView class, 178IDE, see NetBeans IDE-idx.xml files, 444–445if statement, 16Image module, 34ImageIO class, 571images, see iconsImagine project, 58implementations

default, 557–558enabled, 558in modular libraries, 28multiple from different vendors, 28, 555registering in JDK, 27splitting from APIs, 555–559, 568

implement-glyph.gif file, 371implements keyword, 127import keyword, 313indexOfWhite() method, 303InputOutput class, 476, 478insertUpdate() method, 379Inspector window, 127–128, 158, 238–239,

244, 252.instance files, 88–94, 97, 148, 196, 235,

527, 572InstanceContent class, 59–60, 176InstanceCookie class, 93–94, 201instantSubstitution() method, 297

interfaces, see APIsInternationalization module, 36Internationalization of Form module, 36Introspector class, 200invokeLater() method, 120IOException, 218, 313IOProvider class, 476–479isChanged() method, 390isDispatchThread() method, 120isFaceDown() method, 168isHyperlinkPoint() method, 356,

360–362isInWebModule() method, 401, 426isValid() method, 71, 390isValidCategory() method, 337isValidItem() method, 337isValidManifest() method, 224ItemStateChanged class, 336iterator() method, 42

JJAR files

in application’s classpath, 415, 424, 426expanding, 70opening files within, 70signed, 4

JARFilesystem class, 70.java files, 94, 96, 207–208, 240, 247

creating from templates, 416–421encoding of, 419

Javaversion 1.4, 168version 1.4.2, 482version 1.5, 168, 576version 1.5 EE, 429version 2 SE, 482

Java API, 499Java API for XML Web Services, see JAX-WSJava API for XML-based RPC, see JAX-RPCJava Architecture for XML Binding, see JAXBJava dynamic proxies, 122Java generics, 44, 105, 131, 168Java Network Launch Protocol, see JNLPJava Project Support, 414Java Projects API, 53–54Java scriptlets, 124

Index592

Page 11: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

Java Server Faces, see JSFJava VM, 575Java2D, 523, 575JavaBeans, 166, 177, 206, 215, 244, 251Javadoc, 106, 196, 396, 445, 552

generating, 553JavaHelp documentation, 441–452JavaHelp Help Set wizard, 442–443, 449JavaSound, 521, 523, 530javax.xml.parsers package, 556JAXB (Java Architecture for XML Binding),

429JAX-RPC (Java API for XML-based RPC),

429JAX-WS (Java API for XML Web Services),

429JButton component, 242, 245, 321, 533JComboBox component, 178, 192JComponent component, 323JDesktopPane component, 136JDK

version 1.3, 41version 1.4, 413version 1.5, 105, 413version 1.6, 131, 553

JFrame component, 135, 241JInternalFrame component, 136JLabel component, 177, 241–243, 327, 408,

515JList component, 104, 106, 122, 126–127,

133, 163, 178, 243–244, 506, 556JMenu component, 98, 192JMenuItem component, 98JNLP (Java Network Launch Protocol), 9JPanel component, 137, 139, 177, 186–187,

242, 269, 325, 388, 392–393, 407, 533JScrollPane component, 249JSeparator component, 98JSF (Java Server Faces), 399

configuration panel for, 406–407JSFConfigurationPanel class, 408, 413JSFConfigurationPanelVisual class,

408, 413JSFConfigUtitilies class, 414JSFFrameworkProvider class, 402JSFHyperlinkProvider class, 357

JSP filesin HTML Tidy, 474, 519Java scriptlets in, 124Palette Manager for, 341palettes for, 307

JSplitPane component, 184JSR 224, see JAX-WSJTable component, 244JTextArea component, 143–144, 437JTextField component, 242, 408, 437JTidy, 464JTree component, 133, 163, 169, 178, 194Jump to Next Error Action module, 374JUnit class, 227–234

Kkeybindings

global, 196–197for jumping between annotations, 374sets of, 98

Keymaps/ folder, 98–99Keys class, 166, 169–172, 192

Llanguage.instance folder, 281language() method, 284layer files, see layer.xml filesLayer interface, 56–58layer.xml files, 75, 78–86, 88, 92, 149, 153,

158, 217, 275, 291, 368actions in, 191and extending an Options window, 387,

395annotations in, 373, 375–376, 487–489CompletionProviders in, 290, 292–293folders in, 97help sets in, 446–447hiding menus in, 83–84hyperlinks in, 358localized display names of tokens in, 281merging, 76MIME types in, 216, 290, 474, 527palette controllers in, 308, 310, 313–323,

340–341, 346preview text in, 281, 285profiles in, 281

593Index

Page 12: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

layer.xml files (continued)sample templates in, 216syntax highlighting in, 274, 284–286Web framework support in, 404–406XmlListModelProviders in, 123

LayerFactory class, 56layout managers, 127, 237, 251–252lazy loading, 580–581LEAF class, 166, 187, 195Lexer API, 273LexerEditorKit class, 285lexical analyzers, 274

creating, 277–281states of, 277–278

librariescreating, 551–553external, 12, 414metadata about, see .mf filesmodular, 27–29selecting in the Frameworks panel,

423–424simple, 25, 28See also modules

Libraries panel, 7, 109, 249, 256, 312, 414,454, 473, 522–523, 557

Library Manager window, 19, 251, 415,422–424

Line class, 378, 481LineCookie class, 480Linux, 12, 15ListCellRenderer class, 515listeners, 41, 43, 238, 244, 309

for an Options window, 390with no references to the result objects, 53removing, 309weak, 121–123, 227

ListModel class, 104, 106, 118, 123,126–127, 131

ListModelProvider class, 104, 106–126,129–131

ListModelProvider/ folder, 106ListSelectionListener class, 127, 131ListSelectionModel class, 131

ListTableView class, 178ListView class, 178, 185–187, 195load() method, 42, 396, 494Loaders/ folder, 99loadImage() method, 223–224, 571localizingBundle attribute, 216locking

coarse-grained, 119–120dead, 121, 499, 578, 581fine-grained, 119

Lookup API, 184, 522version 6.0, 44, 51

Lookup class, 43–45, 49–67, 138–139, 173,176, 182, 184, 197, 209, 221–223, 544,553, 560–562, 573

addingeditors to, 376palette controllers to, 308

as a communication mechanism, 55creating, 573default, 45, 50–51, 74, 100, 217, 578, 581fixed, 175, 573global, 44, 50, 548listening for changes in, 52, 177merging two Lookups, 58–59for multiview elements, 264and proxying, 58–62, 128tracking selection, 64–65

lookup patterns, 45, 66–67, 208, 219lookup() method, 44–45, 184, 209, 221, 572lookupAll() method, 51, 59LookupListener class, 45, 127

Mmain() method, 432–433Manifest class, 208, 218–219manifest files, see .mf filesManifestCodeCompletion module, 291ManifestCompletionItem class, 292ManifestCompletionProvider class, 292ManifestDataLoader class, 213, 255

including in the default Lookup, 232–233ManifestDataLoaderBeanInfo.java

file, 215

Index594

Page 13: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

ManifestDataNode class, 215, 219–223,225, 227, 275

ManifestDataObject class, 216, 219–223,226–234, 255–256, 260, 275, 376

ManifestEditor class, 275, 376, 378, 381ManifestEditorAnnotation module, 368ManifestEditorSupport class, 257, 260,

267, 270ManifestEnv class, 258ManifestExample file, 283ManifestHyperlinking module, 357ManifestHyperlinkProvider class, 358ManifestLexer class, 275, 277–283ManifestProvider class, 198, 218–223,

228, 231ManifestProviderImpl class, 222ManifestResolver.xml file, 216ManifestSourceEditor class, 263ManifestTemplate.mf file, 216ManifestTextView class, 262, 267, 270ManifestTokenId class, 276, 284ManifestValidator class, 33, 47ManifestValidatorInstall class, 32Map class, 91-map.xml files, 444–445masterHelpSet.xml file, 450–451match groups, 482Matisse, see GUI BuilderMDI (multiple document interface), 136memory

allocation of, 575–576cache of, 120, 576leaks of, 110, 121, 227

Menu interface, 192Menu/ folder, 78, 98, 196menus, 78–88

adding actions to, 84–88, 190–191, 196custom, 192deleting, 75, 80–84lazy, 580–581main, 77–78, 84ordering attributes for, 79–80, 90predefined standard, 79and selection, 135, 163–164updating at runtime, 77–78

metainf services, 41–42, 74, 125methods

atomic, 416drag-and-dropping from the Projects

window, 432factory, 50, 90–93name completion for, 297synchronized, 119–120, 581See also by individual method

.mf files, 4, 138, 149, 208, 211–219, 253, 275,292

friend modules in, 565hyperlinks in, 359–365layer.xml in, 75module dependencies in, 28, 556–558, 563sections of, 218source view of, 254, 267specifying an icon for, 213templates for, 216validation of, 223–227visual view of, 254–271

mficon.png file, 217MIME Lookup API, see Editor MIME

Lookup APIMIME resolvers, 216MIME types, 71, 94, 100–101, 123, 207, 211

associating with classes, 124–125hierarchical, 124of selected files, 126

MimeResolver/ folder, 216minus sign, see -Miscellaneous panel, 385–389, 491–493

comparing with a primary panel, 394–395Mnemonics class, 570Mode class, 140, 142–143, 149, 151, 153–155Modes/ folder, 151, 156Module Development Update 1 module, 456Module Manager window, 25, 34–36, 179,

446, 454–455Module Project wizard, 75, 275, 291, 368,

404Module Suite Project wizard, 4module suites, see suitesModule System, see NetBeans Module

System

595Index

Page 14: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

ModuleInstall class, 29, 39, 47, 581modules, 13–24

adding to suites, 107, 436, 456, 523–524autoload, 34–35, 552–557, 567closing, 30creating, 3–4, 19, 107, 141, 212, 275dependencies of, 7, 13–15, 19, 28, 169,

557–558discovery of, 39–41display names of, 147distributing, 454, 491eager, 36–37, 553, 555, 564enabling and disabling, 25, 552, 554,

563–564end-user-oriented, 24–25excluding from an application, 5, 454friend, 565–567grouping, 33–37, 568independent, 564installing in IDE, 405, 473library wrapper, 19, 435–436lifecycle of, 29–33private, 108as providers, 557public, 108, 566–568registration of, 39–41regular, 34–35, 552–555, 564, 567restoring, 29running, 8, 144standalone, 249templates for, 6UI components for, 123, 125–131, 552updating, 453, 461–462, 565URLs of update centers in, 454using classes from another module, 17, 20,

107–109versions of, 13–15, 23, 552–553, 566See also by individual module

Modules API, 29moveToFront() method, 379MoveToPileAction class, 192–194mu-law encoding, 521MultiFileSystem class, 73

multiple document interface, see MDIMultiView Windows API, 253–271, 521,

523–524MultiViewDescription class, 256–257,

261–263, 269, 542MultiViewElement class, 256–257, 261,

263–267, 269, 537–541MultiViewFactory class, 544MutableArray class, 560–563MVC (Model-View-Controller) architecture,

262, 509.myitem files, 315, 323MyItemData class, 317, 326MyTopComponent class, 312

NName, Icon, and Location panel, 214, 467Navigator window, 100, 103, 164, 173, 238Navigator/ folder, 100NbBundle class, 171, 569–570NBM (NetBeans Module) files, 4, 453,

456–458NbPreferences class, 397NbProcessDescriptor class, 469–470, 473NBTapestrySupport project, 382NBTidyIntegration module, 492NetBeans

copies to work against, 143, 205future versions of, 223, 285, 566internal model of files in, 207–208subdirectory for installing, 234version 3.2, 580version 3.4, 580version 3.5, 156, 575, 577, 580version 3.6, 69version 4.0, 70–71version 5.0, 237, 456version 5.5, 63, 66, 88–89, 93, 105, 139,

153, 168, 209, 217, 234, 273, 285, 312,447, 456, 523–524, 556, 558, 563, 566

version 6.0, 44, 51, 59, 93, 103, 209, 217,220, 222, 232, 234, 273, 285, 308, 344,347, 396–397, 478, 558, 563, 566

Index596

Page 15: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

NetBeans IDEbasics of, 3–9build and compile actions in, 498default UI of, 136excluding

its help sets from modules, 446–448its modules from suites, 438, 446, 454,

522–523external tools in, 463–519generating code in, 247–248, 432installing, 1keybindings in, 98line numbering in, 481main window of, 113merging help sets in, 441restoring files after restart in, 77standard layout managers in, 251syntax highlighting in, 273unit tests in, 228, 557updating modules in, 453

NetBeans Module files, see NBMNetBeans Module System, 13–15, 24, 28, 43,

107–108, 557disallowing cyclic dependencies in,

559–563NetBeans Platform, 203, 237

bare, 80–83, 524configurable settings in, see Options

windowdocumentation on, 1drag-and-drop approach in, 323library management in, 13

NetBeans Profiler, 100NetBeans runtime container, see NetBeans

Module SystemNetBeans Wicket module, 400NetBeans Window System, 54, 62, 135–161

component-oriented, 137configuration data for, 156updating menus at runtime, 77–78

NetBeans-Manifest-fontsColors.xml

file, 283New Action wizard, 84–88, 197–199, 342,

464, 499, 517New File Type wizard, 212–214, 216–217,

232, 255, 275, 291, 314–315, 358, 376

New File wizard, 6, 29, 32, 84, 99, 216, 240,386–387, 393, 430, 466–467, 470, 487,492, 526–527

New Project wizard, 1–4, 19–20, 55, 165,400, 402, 405, 424, 435

New Window Component wizard, 95, 126,142–143, 147, 156, 179, 204, 240, 249,312

New Wizard wizard, 240, 407–408, 505–507,517

newInstance() method, 41–42, 44, 148Node class, 54, 60–61, 66, 99, 138–139,

163–176, 197, 210, 215, 219, 221, 579,581

cloning, 166, 188displaying, 178–181properties of, 167, 178, 199–203, 209rendering, 177subclassing, 66wrapping, 165

Nodes API, 67, 103, 133, 163–176, 201, 203,206, 257, 292, 312, 357, 464, 515, 526

notifyAttached() method, 379notifyDetached() method, 379notifyModified() method, 260notifyUnmodified() method, 260NullLayout class, 252

Oobjects

annotatable, 378–379creating, 94getting from a folder, 94–95initializing, 579instances of, 90–94long-lived, 576–577proxy, 140registering, 106

manifest-based, 217in System Filesystem, 74, 88via classpath, 41

serialized, 97, 235–236weak references to, 111, 227

open() method, 62, 113, 139, 142, 147,151–153, 257

OpenAction class, 196, 527

597Index

Page 16: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

OpenCookie class, 113, 196, 256–257, 275,376, 528

OpenFile class, 362OpenSupport class, 528–529Options API, 465Options Panel wizard, 240, 386–390,

392–393, 465, 491–493Options window, 81, 99, 205–206, 274, 286,

369, 385–397, 439, 454, 460–461, 491,580–581

adding settings to, by users, 396–397,494–496

extending, 281–284, 385–395initializing, 390primary panels in, 387, 393–395

Options/ folder, 100OptionsCategory class, 394–395OptionsDialog/ folder, 99OptionsPanelController class, 388–392org.sax package, 556org.w3c.dom package, 556org-netbeans-modules-manifest-

syntax-error.xml file, 369org-openide-util.jar file, 43Other/ folder, 216Output window, 434, 465, 467, 474,

476–479, 499outputLineAction() method, 479OutputListener interface, 479outputListenerAction() method, 480override-glyph.gif file, 371

Ppackages

friend, 565–567nonpublic, 565public, 17, 104, 108, 542, 552–567

paintComponent() method, 182–183Palette API, 308, 310, 331–332Palette Manager window, 239, 309, 311,

332–333, 341–343, 533Palette window, 158, 238–241, 250–251PaletteActions class, 311, 313, 332–335PaletteController class, 308–309,

339–341PaletteFactory class, 310, 313

PaletteFilter class, 311, 335–338, 341palettes, 135, 141, 307–353

adding items to, 313–323, 332–335,347–353

adding to TopComponent’s Lookup, 312attributes of, 339–341contextual menus in, 331–332, 340creating, 310–313dependencies for, 312display names of, 314drag-and-drop handlers in, 311, 321–323,

331, 350–351factories for, 345–346, 349filtering, 309, 311, 332–333, 335–338hierarchy of, in user directories, 321–323icons for, 314, 347initializing, 345listeners in, 309, 324, 332–333, 338–339refreshing, 309, 333, 335–338retrieving, 309root node of, 309–310, 333, 339, 343, 345selecting, 309for text-based editors, 344–353tooltips in, 347

PaletteSupport class, 310, 312Panels/ folder, 100parentheses, see ()Part class, 378peekTopCard() method, 175performAction() method, 198–199, 342,

437–438, 467–468, 517performance, 575–581performClickAction() method, 356, 362Persistence API, 396persistence modes, 147, 181Pile class, 167, 171–173, 175–176PileChildren class, 192PileNode class, 172–173, 175–176, 195plugins, 22plus sign, see +POJO (Plain Old Java Objects), 91–94, 235Popup interface, 192Popup/ folder, 101Post class, 224postValidityCheckInBackground()

method, 224

Index598

Page 17: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

Preferences API, 396–397, 494Preferences class, 509, 512PREFERRED_ID string ID, 145preferredID() method, 146, 149,

262–263, 270presentation layer, 164, 167Presenter interface, 192presenters, 191–195PreviewExamples/ folder, 281primary panels, 387, 393–395, 491–492

reordering, 395println() method, 476, 479Privileged/ folder, 99ProceedAction class, 536Process class, 469ProcessBuilder class, 469processDataObject() method, 501processKeyEvent() method, 296Profile Project action, 100Project API, 414Project class, 19, 53, 55, 66

integrating HTML Tidy into, 464Project Properties window, 7, 36–37,

104–105, 109, 249, 256, 400–402, 414,424–426, 438, 450, 454, 473, 522–523,542, 557

Project UI API, 99–100project.xml file, 234ProjectFactory class, 55ProjectInformation class, 53, 66projects, 573

compilation classpaths of, 573creating, 386, 435display names of, 573types of, 55See also modules, suites

Projects API, 53Projects window, 1–2, 8, 19, 34, 88–89,

99–100, 109, 126, 129, 156, 158, 165,215, 217, 251, 283–284, 377, 429,432–433, 443, 445, 454, 459, 473–474

integrating HTML Tidy into, 465Projects/ folder, 100projects/projectui module, 567projects/projectuiapi module, 567ProjectsTabActions/ folder, 99

.properties files, 97, 133, 207–209, 569Properties class, 66, 208–210Properties window, 20, 35, 108, 160, 219,

238–239, 244, 248–249, 388, 456, 462Property class, 167, 178, 199Property Sheet API, 169, 203, 256Property Sheet window, 158, 164, 166–167,

178–179, 199, 203property sheets, 135, 141, 205–206, 254–255,

269propertyChange() method, 227PropertyChangeListener class, 121–122,

226–227PropertyEditor class, 167, 199, 201PropertySet class, 167PropertySheetView class, 178Provider class, 138, 177–178–181, 184,

186–187, 204proxying, 58–62, 73, 122, 128, 140, 434, 439,

461–462ProxyLookup class, 58–62Pseudo Navigator, 103–133PseudoNavigatorTopComponent class,

127

RRank class, 167, 201RasterSurface interface, 57readExternal() method, 140ReadOnly class, 201–202readOutput() method, 469, 483, 489ReadOutputStreamRunnable class, 501readResource() method, 418readSettings() method, 512, 514readTextResource() method, 418ReadWrite class, 201refresh() method, 309, 333, 335, 337registered services, 45registerEditorKitForContentType()

method, 27registerValidator() method, 31, 46regular expressions, 113, 482, 489removeListDataListener() method, 118removePropertyChangeListener()

method, 309, 333, 379, 390removeUpdate() method, 379

599Index

Page 18: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

render() method, 296requestActive() method, 139, 147, 152RequestProcessor class, 118, 121, 224,

381, 467, 578requestVisible() method, 139ResolvableHelper class, 145–146resolveLink() method, 304ResourceBundle class, 171, 569–570responsiveness, 577, 580restored() method, 29, 39resultChanged() method, 129RPM require lists, 28run() method, 118–120, 225, 381, 468–469,

500Runnable interface, 118–120, 224–225,

263–264, 381, 468–469, 500, 578runtime container, see NetBeans Module

SystemRuntime window, 100Runtime/ folder, 100

S\s in regular expressions, 482Save action, 63, 197–199save() method, 50, 54–55, 258, 497Saveable interface, 50, 54SaveAction class, 195–196SaveCookie class, 50, 55, 66, 138, 195–196,

198–199, 210, 258, 260, 497, 528, 531schedule() method, 381Scratchpad window, 141–144, 153–154SDI (single document interface), 136SecurityManager class, 27select() method, 111, 476selected() method, 126selection, 177

global, 64–65, 67, 128–129, 163–164management of, 136, 138, 163–164

.ser files, 97, 235, 251, 572Service Provider Interfaces, see SPIsservice providers, 41–43ServiceLoader class, 42–43, 553Services/ folder, 100servlets, 400, 407, 426Set class, 167, 202

set() method, 176setAppClass() method, 412–413setCard() method, 338–339setCategoryExpertVisible() method,

337setDataObject() method, 130–131setDisplayedMnemonicIndex() method,

570setDropTarget() method, 325setFiles() method, 514–515setInputVisible() method, 478setKeys() method, 172, 192setLocalizedText() method, 570setMnemonic() method, 570setModel() method, 130–131setMultiViewCallback() method, 264,

270setProvider() method, 130–131setSecurityManager() method, 27setSelectedItem() method, 309, 333.settings files, 52, 93–95, 97, 148–149,

151, 235, 572setUp() method, 229, 231setWavDataObject() method, 543sfsviewer module, 203.shadow files, 78, 87–88, 91, 97, 100, 217Sheet class, 167, 202Shortcuts/ folder, 99showCustomizer() method, 309, 333Sidebar/ folder, 101single document interface, see SDIsingleton() method, 573singletons, 50–51, 66, 142, 151, 166SoftReference class, 51software

distributed development of, 11–12, 229entropy of, 17, 559modular, 11–22by multiple vendors, 26object-oriented, 16–17, 555, 559–563, 579open source, 11, 25, 229releases of, 12server-side, 235source code of, 12See also applications

Index600

Page 19: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

Source Editor, 249, 355code folding sidebar in, 101extensions in, 399fixing imports in, 127, 434, 473integrating HTML Tidy into, 463–519line numbering in, 101opening files in, 474retrieving content from, 498–499, 504wizards in, 399

spaces, in regular expressions, see \sspaghetti code, 16, 555, 559–563, 567specifications, 14, 26–27

in modular libraries, 28revisions of, 28

spell checkers, 463SPIs (Service Provider Interfaces), 55, 103,

401Splash Screen panel, 9Spring framework, 402square brackets, see []stateChanged() method, 192static keyword, 222, 556StatusDisplayer interface, 50–51store() method, 396–397, 494storeSettings() method, 512String class, 74StringBuilder class, 500stringToKey() method, 196Struts, 399, 407StrutsConfigurationPanel class, 408,

413StrutsConfigurationPanelVisual

class, 408, 413StrutsConfigUtilities class, 414StrutsFrameworkProvider class, 402StrutsHyperlinkProvider class, 357Subversion, 552Suit class, 167, 201suites, 19–20

adding modules to, 107, 436branding, 438creating, 19, 168excluding IDE’s modules from, 438,

522–523

Swing, 104, 135, 190, 238, 250, 262, 269,569–571, 575

drag-and-drop approach in, 323GUI editor of, 147look-and-feels, 175Palette Manager for, 341reverse-engineering, 248single-threaded, 117–121standard layout managers in, 251

synchronization, 581synchronized keyword, 119–120, 224synchronizedList() method, 119syntax highlighting, 273–286

attributes for, 281extending Options window, 281–284lexical analyzers for, 277–281registering in layer files, 284–286tokens for, 275–277

System Filesystem, 71–72, 96, 150, 578, 581accessing, 93browsing, 96commonly used folders in, 96–101editing via

GUI, 88–89layer files, 75

firing events in, 77–78getting a file or folder in, 572read/write, 75–77registering data in, 74–88useful file types in, 97viewer for, 203–205

SystemAction class, 195

Ttabs, in regular expressions, see \stakeLock() method, 258Tapestry framework, 402Task class, 224, 381tax forms, 549tearDown() method, 231.template files, 416–421Template Manager window, 96Templates/ folder, 99, 216terminal emulators, 556

601Index

Page 20: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

test.unit.cp.extra package, 234Text API, 257, 292, 357<this layer in context> node, 88–89, 156,

375, 446–447threads, 117–121

background, 118, 120–121, 221, 223–224,580

event, 581internal, 469separate for input and output, 499switching between, 578synchronized, 119

Tidy module, 464TidyConfigurationPanel class, 494–496TidyConversionRunnable class, 501,

503–504TidyErrorAnnotation.xml file, 488TidyErrorCheckAction class, 467–468,

473TidyOutputListener class, 479–482TidyRunnable class, 468–473, 476, 483,

489–490, 499, 501, 518TidySettings class, 509–512, 518TidyWarningAnnotation.xml file,

487–488-toc.xml files, 444–445TODO comments, 245ToDo window, 245toFile() method, 571toFileObject() method, 571TokenId interface, 276tokens (in manifests), 273–274

attributes for, 281IDs of, 275–277“needs”, 558, 563“provides”, 28, 558“requires”, 28, 556, 558

Tool interface, 56–58Toolbar interface, 192toolbars

adding actions to, 190, 196for multiview elements, 264and selection, 135, 163–164

Toolbars/ folder, 99, 196Toolkit class, 40, 571

tooltipsfor annotations, 367, 378, 484in code completion boxes, 289–291, 294,

296for components, 310in palettes, 318, 347

TopComponent class, 54, 62, 65–66, 113,126, 137–147, 177–178, 204, 238, 249,517, 534

addingdrag-and-drop handlers to, 325palettes to, 312, 344

display names of, 264IDs of, 160methods in, 139–140for node displaying, 178–181nondeclarative, 152opening, 152–153persisting state across sessions, 145–147

TopComponent groups, 158–161TopComponentGroup class, 141, 161TopComponentTest module, 249toString() method, 515Transferable interface, 330–331transferables, 324, 330TreeTableView class, 178–179

UUI components, see componentsUI Utilities API, 234, 256, 357, 526, 570UI/ folder, 100UIManager class, 175Unicode encoding, 174, 181unit tests, 227–234

running, 233–234, 557unregisterValidator() method, 31, 46Update Center wizard, 1, 273, 453–456,

458–459, 461–462, 524update centers, 453–463

distributing, 458–461manually, 459–461via a module, 458–459

downloading files from, 461–462update() method, 390, 396updateRootNode() method, 188–189updates.xml file, 456

Index602

Page 21: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

URLHandlerFactory class, 27URLs, 91–93URLStreamHandler class, 40userdirs, 77, 154–155, 158, 396Utilities API, 169, 171, 176, 292, 358, 404,

526Utilities class, 223–224, 303

Vvalidate() method, 46Validations class, 31, 46–47Validator API, 31, 33Validator interface, 30–33, 46–47, 553validators, 30–33, 463valueChanged() method, 131View_hidden file, 81, 83views

design (visual), 238, 242, 253, 388, 394creating, 269–271

detail, 67, 135, 165, 176, 182–188, 195explorer, 163, 177–178, 184–190, 249–250form editor, 143frequency-domain, 545list, 133, 163, 187master, 67, 135, 165, 184–190runtime, 239source, 238, 247, 249, 253

creating, 261–268standalone, 184switching between, 253synchronizing, 253, 255tree, 133, 163, 186, 238

eliminating Nodes from, 194–195expansion handles in, 166, 171

VisibilityPolicy class, 167Visual class, 269–271VisualPanel class, 509volatile keyword, 118, 120

Wwarning-glyph.gif file, 371WAV files, 521–522

editing, 534–535supporting, 526–530viewing, 521, 533–535zero-sample file, 526

WavComponent class, 534–541WavCookie interface, 543–544WavDataObject class, 529–532, 543WavOpenSupport class, 532, 534–536, 543,

548WavPanel window, 533–534WavPanelMultiViewDescriptor class,

536–538, 543–544WavSaveCookie class, 532wavsupport module, 526–530, 542–545WavTemplate.wav file, 526wavutils module, 523, 526, 530, 533, 545WavViewDescriptor interface, 543–545weakFileChangeListener() method,

121–122, 226WeakListeners class, 122, 227WeakPCL class, 121–122WeakReference class, 51, 110–111Web APIs, 401, 404Web frameworks, 91–93, 399–427

configuration files for, 401configuration panels for, 406–413display names for, 401registering, 401, 404–406selected in the New Project wizard,

424–426source structure for, 400testing, 427

Web Service Client wizard, 431–432Web services, 429–440

clients forcreating, 430–435integrating, 435–440

code completion for, 439–440testing, 430–431URLs for, 430

Web startable, see JNLPweb.xml file, 400–401, 407, 426WebFrameworkProvider class, 401–406,

410–411, 413, 419dependencies for, 404, 414implementations of, 402–404

WebModule class, 414while statement, 16Wicket Configuration panel, 407–410, 422Wicket framework, 400, 417–418, 422

603Index

Page 22: Index [ptgmedia.pearsoncmg.com]ptgmedia.pearsoncmg.com/images/9780132354806/index/0132344483... · Actions/ folder, 87, 99–100, 217 actionsGlobalContext() method, 62–65, 128–129,

WicketApplication.java file, 419–421WicketConfigurationPanel class,

407–411WicketConfigurationPanelVisual

class, 407, 412WicketConfigUtilities class, 414–415WicketFrameworkProvider class,

402–404, 410–411, 414, 419WicketHyperlinkProvider class, 357WicketVisualPanel1 class, 407WicketWebFrameworkSupport class, 404WicketWizardAction class, 407WicketWizardPanel1 class, 407Window Component wizard, see New

Window Componentwindow managers, 136, 145, 481, 556Window System, see NetBeans Window

SystemWindow System API, 136–137, 150–151, 161,

169, 292, 358, 521, 526classes in, 139–141

Window System Group files, see .wsgrp filesWindow System TopComponent Group files,

see .wstcgrp filesWindow System TopComponent reference

files, see .wstcref filesWindowManager class, 140windows, 137

centering buttons in, 533creating, 476interacting with, 478logical, 135statusbars in, 50–51See also by individual window

Windows2/ folder, 150–151, 156–157,159–160

Windows2Local/ folder, 154, 156Wizard API, 409Wizard wizard, see New WizardWizardDescriptor class, 514, 517WizardIterator class, 517WizardPanel class, 509wizards, 75, 139, 505–517

See also by individual wizardWrappedAudioInputStream class, 530writeExternal() method, 140

writeFile() method, 419writeln() method, 482writeReplace() method, 140, 145–146.wsgrp files, 159–160.wsmode files, 154, 156, 158.wstcgrp files, 160–161.wstcref files, 151, 156–157

XXHTML, 463XML files

in HTML Tidy, 519matching tags in, 113parsing, 26, 556

XML layer files, see layer.xml filesXmlFileListModel class, 110, 113–120,

122XMLFileSystem class, 73XmlListModelItem class, 110–113XmlListModelProvider class, 107,

109–123

ZZIP files, 9

Index604