Getting Started with Jbuilder ®
Total Page:16
File Type:pdf, Size:1020Kb
Getting Started with JBuilder ® JBuilder® 2005 Borland Software Corporation 100 Enterprise Way Scotts Valley, California 95066-3249 www.borland.com Refer to the file deploy.html located in the redist directory of your JBuilder product for a complete list of files that you can distribute in accordance with the JBuilder License Statement and Limited Warranty. Borland Software Corporation may have patents and/or pending patent applications covering subject matter in this document. Please refer to the product CD or the About dialog box for the list of applicable patents. The furnishing of this document does not give you any license to these patents. COPYRIGHT © 1997–2004 Borland Software Corporation. All rights reserved. All Borland brand and product names are trademarks or registered trademarks of Borland Software Corporation in the United States and other countries. All other marks are the property of their respective owners. For third-party conditions and disclaimers, see the Release Notes on your JBuilder product CD. Printed in the U.S.A. JB2005introjb 6E5R0804 0405060708-987654321 PDF Contents Chapter 1 Tools . 26 Getting started in JBuilder 1 Command-line tools . 26 Java component libraries . 27 Topics . 1 JBuilder samples . 28 Introducing JBuilder . 1 Working in JBuilder . 2 Chapter 4 Using JBuilder’s editor . 2 Customizing JBuilder . 3 Learning more about JBuilder 29 Tutorials . 3 JBuilder documentation set . 29 Documentation conventions . 31 Part I Using JBuilder’s online help . 32 How to get Help . 32 Introducing JBuilder Getting help in JBuilder’s IDE . 32 Getting help from your web browser . 33 Chapter 2 The Help Viewer user interface. 33 Introduction 7 Using the Help Viewer . 34 Using embedded or standalone help . 35 Chapter 3 Using the table of contents . 35 JBuilder’s work environment 9 Synchronizing Help Viewer contents . 36 JBuilder workspace . 9 Using the index . 36 JBuilder menus . 11 Using the tasks list . 36 Main toolbar. 12 Using search in the Help Viewer . 36 Content pane . 14 Creating book subsets for searching File view tabs . 14 in the Help Viewer . 37 Project pane . 16 Searching for text in the current topic . 37 Project pane title bar. 16 Copying text from the Help Viewer . 37 Project pane Project tab . 17 Starting the Help Viewer in a Project pane Files tab . 17 separate VM . 37 Project pane Classes tab . 17 Hiding Help Viewer panes. 38 Project pane toolbar . 17 Adding tabs to the Help Viewer Project pane context menu . 18 content pane. 38 Structure pane . 18 Zooming in the Help Viewer . 38 Structure pane title bar . 19 Using bookmarks in the Help Viewer . 39 Structure pane tool bar . 19 Setting proxy configurations. 39 Visual design and the structure pane . 19 Navigating in the Help Viewer . 40 UML and the structure pane . 20 Using the keyboard for scrolling . 40 EJB designer and the structure pane . 20 Using Dynamic Help . 41 DD Editor and the structure pane . 20 Viewing class reference documentation . 41 Struts Config Editor and the structure pane . 20 The layout of the reference Tiles Designer and the structure pane. 21 documentation . 41 Faces Config Editor and the structure pane . 21 Printing tutorials and other documentation . 42 Message pane . 21 Adaptive techniques supported in JBuilder . 42 Message pane title bar . 22 JBuilder keyboard navigation . 42 Message pane tool bar . 22 Section 508 compliance . 43 Status bars . 22 Additional resources for learning about JBuilder . 43 Main status bar . 22 Developer support and resources . 43 Editor Status bar . 23 Contacting Borland Developer Support . 43 Message status bar . 23 Online resources . 43 JBuilder projects . 23 World Wide Web . 44 Wizards . 24 Borland newsgroups . 44 Designers . 25 Usenet newsgroups . 44 Reporting bugs . 44 i Part II Creating new files or packages for a web application . .73 Working in JBuilder Running an application from the project pane . .73 Chapter 5 Using the files pane . .73 Introduction 49 Using the classes pane . .74 Displaying class hierarchy . .74 Chapter 6 Navigating in the classes pane. .75 Working with projects 51 Using the structure pane . .75 Creating projects . 52 Sorting in the structure pane . .76 Creating a new project . 52 Filtering in the structure pane . .76 Creating projects from existing code . 52 Changing structure pane icons. .77 Adding files to a project. 52 Viewing Javadoc information in the Updating paths . 53 structure pane . .77 Adding libraries, projects, and archives . 53 Using the structure pane to navigate Removing and deleting files and directories . 54 in the source code . .78 Renaming projects and files . 54 Viewing structure pane error messages . .78 Opening projects . 54 Navigating Java code hierarchy in the Switching projects . 54 structure pane . .79 Closing projects . 55 Getting Java help from the structure pane . .79 Using the message pane . .79 Chapter 7 Copying message pane text . .80 Developing code 57 Formatting message pane text . .80 Using wizards to generate code . 57 Wrapping message pane text . .81 Using the object gallery . 58 Hiding and showing the message pane . .81 Working with the visual design tools . 59 Undocking the message pane . .81 Editing files . 60 Using the status bars . .81 Using code audits . 60 Main status bar. .81 Editor status bar . .81 Chapter 8 Using the editor status bar to display Using the JBuilder workspace 63 line numbers. .82 Using the editor status bar to Navigating the workspace . 64 navigate to lines . .82 Keyboard navigation. 64 Changing keymaps from the Using the history lists . 64 editor status bar . .82 Using View navigation buttons . 65 Changing editor font size from the Using favorite links . 65 editor status bar . .82 Adding favorite links . 65 Message status bar . .82 Organizing favorite links . 65 Monitoring memory use . .82 Using bookmarks . 66 Using window action commands . 66 Chapter 9 Searching in the workspace . 66 Searching trees . 66 Compiling and building Java programs 83 Finding classes . 67 Compiling Java projects . .83 Searching in the editor . 67 Building Java projects . .84 Using the content pane . 67 Using the content pane file tabs. 68 Chapter 10 Using the file tab context menu . 68 Running, testing, profiling, and Resizing the content pane. 69 debugging source code 85 Using the project pane . 69 Running programs in JBuilder. .85 Using the project pane toolbar . 70 Unit testing . .86 Using file tool tips . 70 Optimizing and profiling source code . .86 Using file status decorations . 70 Debugging your program . .87 Navigating the project tree . 71 Viewing files . 71 Chapter 11 Switching between open projects . 71 Managing application Using the project pane context menu . 72 Adding new files, folders, directories, development 89 or packages. 72 Local version control . .89 Removing files and classes . 73 Version control system (VCS) integration . .89 Refactoring code . .90 ii Visualizing code with UML . 90 Finding code elements and definitions . 119 Managing project requirements . 91 Finding a symbol’s definition . 119 Internationalizing programs . 91 Finding references to a symbol. 120 Finding the overridden method . 120 Chapter 12 Finding unused code elements Developing applications 93 and overriding methods . 121 Developing web applications . 93 Applying Javadoc shortcuts . 121 Developing enterprise applications . 94 Using Javadoc code templates . 121 Combining J2EE technologies into Adding and editing Javadoc tags . 122 an enterprise application . 94 Using JavadocInsight . 122 Developing Enterprise JavaBeans . 94 Accessing JavadocInsight . 123 Working with XML. 95 Setting JavadocInsight pop-up timing . 123 Developing web services.