Murach s Java SE 6. How to use NetBeans with MIKE MURACH & ASSOCIATES, INC.
|
|
|
- Vivian Sharp
- 9 years ago
- Views:
Transcription
1 How to use NetBeans with Murach s Java SE 6 1 How to use NetBeans with Murach s Java SE 6 NetBeans is a software framework for developing Integrated Development Environments (IDEs). In particular, it is used to develop the NetBeans IDE, which is an IDE for Java. NetBeans is open-source, available for free, and runs on all modern operating systems. This tutorial has been designed to work with our beginning Java book, Murach s Java SE 6. To make it easy for you to use this tutorial with our Java book, each topic in this tutorial includes references to the related chapters in our book whenever that s necessary or helpful. How to get started with NetBeans... 2 How to download and install the NetBeans IDE... 2 How to start NetBeans... 4 How to create a new project with a main class... 6 How to save and edit source code... 8 How to fix errors How to compile and run an application How to run a console application that gets user input How to open and close projects and import source code How to open a project How to close a project How to import existing Java files into a new project Object-oriented development with NetBeans How to create a new class How to work with classes How to work with interfaces How to start a class that implements an interface How to work with packages How to generate documentation Debugging with NetBeans How to set and remove breakpoints How to step through code How to inspect variables How to inspect the stack trace More NetBeans skills How to run an applet How to add a JAR file to the libraries for a project Perspective MIKE MURACH & ASSOCIATES, INC (559) Fax: (559) [email protected] Copyright 2007 Mike Murach & Associates. All rights reserved.
2 2 How to use NetBeans with Murach s Java SE 6 How to get started with NetBeans Before you install the NetBeans IDE, you should install the need to install the Java Development Kit (JDK) for Java SE 6 as described in figure 1-4 in chapter 1 of Murach s Java SE 6. In addition, if you want to use NetBeans with our book, you should download the NetBeans version of the source code for our book from our web site ( To do that, download the zip file for this source code and unzip it into the C:\murach\java6 folder. If this folder doesn t already exist, you can create it. How to download and install the NetBeans IDE Once you have installed Java SE 6, you re ready to install the NetBeans IDE. Since most Java development is still done under Windows, figure 1 shows how to install NetBeans on a Windows system. In summary, once you download the exe file for the NetBeans installation program, you run this installation program and respond to the resulting dialog boxes. When you do, the installation program will install NetBeans and create a shortcut to the NetBeans.exe file in your Start menu. Since this works like most Windows installation programs, you shouldn t have any trouble doing this. If you encounter any problems, you can view the documentation that s available from the NetBeans web site and consult the troubleshooting tips. If you want to install NetBeans on another operating system such as Linux, Solaris, or Mac OS X, you can follow the instructions that are available from the NetBeans website.
3 How to use NetBeans with Murach s Java SE 6 3 The NetBeans web site How to download and install NetBeans 1. Go to the NetBeans web site. 2. Download the NetBeans IDE installer. For NetBeans 5.5 on a Windows system, the exe file should be named something like netbeans-5_5-windows.exe. 3. Run the install file and respond to the resulting dialog boxes. The default install folder C:\Program Files\netbeans-5.5 Description Although this procedure is for downloading and installing NetBeans for Windows, you can use a similar procedure for non-windows systems. For information about installing NetBeans on other operating systems or about troubleshooting installation problems, you can refer to the documentation that s available from the NetBeans web site. Figure 1 How to download and install NetBeans
4 4 How to use NetBeans with Murach s Java SE 6 How to start NetBeans Once you ve installed the NetBeans IDE, you can start it by selecting it from the Start menu. When start NetBeans for the first time, it should display a Welcome tab like the one shown in figure 2. If it doesn t, you can display this page by selecting the Welcome Screen command from the Help menu. Since you don t need this Welcome page to work with NetBeans, you can close it if you like. To do that, click the X that s displayed to the right of the tab for the Welcome page. If you re curious to see what version of Java the NetBeans IDE uses by default, you can select the Java Platform Manager command from the Tools menu to display the Java Platform Manager dialog box. By default, NetBeans uses the latest version of Java that s installed on your system, which is usually what you want. However, if you want to use another version of Java, you can install that version of Java on your system and use the Java Platform Manager to specify that version of Java.
5 How to use NetBeans with Murach s Java SE 6 5 The Welcome page Description You can start NetBeans by selecting it from the Start menu just as you would for any other program. When you start NetBeans for the first time, it usually displays a Welcome tab like the one above. If the Welcome page isn t displayed on startup, you can display it by selecting the Welcome Screen command from the Help menu. Figure 2 How to start NetBeans
6 6 How to use NetBeans with Murach s Java SE 6 How to create a new project with a main class Figure 3 shows how to create a new NetBeans project. Essentially, a project is a folder that contains all of the files that make up an application. To create a new project, select the New Project command from the File menu. When you do, NetBeans will display a New Project dialog box like the one in this figure. In the New Project box, you can select the Java Application option to use a wizard to create a new Java application (as opposed to the other types of projects that are available from NetBeans). Then, you can click on the Next button. When you do, NetBeans will display a dialog box like the second one in this figure. In the New Java Application dialog box, you can enter a name for the project. In this figure, for example, the project name is TestApp. After you enter the name for the project, you can select the folder that the project should be stored in. In this figure, for example, the application is stored in this folder: C:\murach\java6\netbeans\applications If you download the NetBeans files for Murach s Java SE 6 and unzip them into the C:\murach\java6 folder, all of the applications presented in this book will be stored in this folder. After you specify the folder for the project, you can use the first check box to specify whether this project is the main project. By default, this check box is selected, and that s usually what you want. However, you can easily change this later, so this choice isn t critical. In addition, you can use the second check box to create a class that contains a main method and to specify the name of that class. By default, this dialog box creates a class named Main that contains a main method and it stores this class in a package that has the same name as the project. For example, by default, this dialog box suggests testapp.main as the name for the class that stores the main method for the TestApp project. However, in this figure, I changed this suggested name to TestApp. As a result, the TestApp project will contain a class named TestApp that contains a main method, and this class will be stored in the default package that s used when you don t specify a package name. Finally, you can click on the Finish button to create the project and the class that contains the main method. When you do, NetBeans creates a folder that corresponds with the project name and it creates some additional files that it uses to configure the project.
7 How to use NetBeans with Murach s Java SE 6 7 The first dialog box for creating a new project The second dialog box for creating a new project Description To create a new project, select the File New Project command from the menu system and respond to the resulting dialog boxes. Figure 3 How to create a new project with a main class
8 8 How to use NetBeans with Murach s Java SE 6 How to save and edit source code When you create a new project that contains a class with a main method, the class is typically opened in a new code editor window as shown in figure 5. To make it easier to for you recognize the Java syntax, the code editor uses different colors for different types of syntax. In addition, NetBeans provides standard File and Edit menus and keystroke shortcuts that let you save and edit the source code. For example, you can press Ctrl+S to save your source code, and you can use standard commands to cut, copy, and paste code. When you create a new class, NetBeans often generates some code for you. In this figure, for example, NetBeans generated the code that declares the class, and it generated the code that declares the main method (since this was specified by the dialog box in figure 3). For more information about declaring a class or coding a main method, you can read chapter 2 of Murach s Java SE 6. If you want, you can delete or modify the generated code. For example, when I created the TestApp class, NetBeans generated a constructor for the class. However, since the TestApp class doesn t need a constructor, I deleted it. NetBeans also generates some comments that describe the class and its methods. For the TestApp class, I deleted all comments except the javadoc comment that was generated before the main method. Then, I entered a statement that prints text to the console within the main method, and I modified the placement of the braces. When you enter code, you can use the code completion feature that s available from NetBeans to complete your code. This feature prevents you from making typing mistakes, and it allows you to discover what methods are available from various classes and objects. In this figure, for example, I used code completion when entering the statement that prints text to the console. To start, I entered sys and pressed Ctrl+Spacebar (both keys at the same time). This displayed a list of possible options. Then, I selected an option from the list that looked like this: System.out.println(" "); When I did, NetBeans entered this code into the editor for me and placed the cursor between the two quotation marks. Finally, I typed the text that should be printed to the console between the quotation marks. If you experiment with the code completion feature, you ll quickly figure out when it helps you enter code more quickly and when it makes sense to enter the code yourself. If the source code you want to work with isn t displayed in a code editor window, you can use the Projects window to navigate to the.java file and double-click on it to open it in a code editor window. In this figure, for example, the TestApp.java file that s open in the code editor is also shown in the Projects window. As you can see, this file is stored in the default package of the Source Packages folder of the TestApp project.
9 How to use NetBeans with Murach s Java SE 6 9 NetBeans s code editor with source code in it Description To open a code editor window for a file, double-click on the.java file in the Projects window. To enter and edit source code, you can use the same techniques that you use with any text editor. To activate the code completion feature, press Ctrl+Spacebar after entering the first few letters of a class or object. Or, enter the period after a class or object. Then, you can select an item from a list of possibilities. To save the source code, select the Save command (Ctrl+S) from the File menu. By default, NetBeans may generate some code. You can delete this code or modify it for use in your application. Figure 4 How to save and edit source code
10 10 How to use NetBeans with Murach s Java SE 6 How to fix errors In NetBeans, an error is a line of code that won t compile. As you enter text into the code editor, NetBeans displays errors whenever it detects them. In figure 5, for example, NetBeans has displayed an error that indicates that a semicolon needs to be entered to complete the statement. This error is marked with a red icon that has an X on it just to the left of the statement that contains the error. In addition, the statement that contains the error is marked with a wavy red underlining. If you position the mouse cursor over red X icon or over the statement itself, NetBeans will display a description of the message. In this figure, for example, the description indicates that NetBeans expected a semicolon at the end of the statement. As a result, you can fix the error by typing the semicolon at the end of the statement.
11 How to use NetBeans with Murach s Java SE 6 11 An error that s displayed when you save the source code Description NetBeans often displays errors before you attempt to compile or run an application. NetBeans marks errors with a red square with an X in it in the code editor window. If you position the mouse pointer over the error, NetBeans will display a description of the error. This usually provides enough information for you to fix the error. Figure 5 How to fix errors
12 12 How to use NetBeans with Murach s Java SE 6 How to compile and run an application By default, NetBeans automatically compiles an application before it runs the application. Since this saves a step in the development process, this is usually what you want. An easy way to run an application for the first time is to press F6. Then, NetBeans will run the main class in the main project. In this figure, for example, you only have one project and one class. As a result, NetBeans runs the TestApp class in the TestApp project. This prints a line of text to the Output window, which is the default console that s used by NetBeans. Since this application just prints text to the console, it can be referred to as a console application. If you have several projects open at the same time, you can specify the main project by right-clicking on the project and selecting the Set As Main command. Similarly, if a project contains several classes that have a main method, you can specify the main class by right-clicking on the project, selecting the Properties command, clicking on the Run category, and using the dialog box to specify the class. Or, if you just want to run the class, you can use the Projects window to navigate to the.java file for the class, right-click on it, and select the Run File command. Now that you know how to create a simple project, you have all the skills you need to complete the first exercise that s presented at the end of this tutorial. If you re working through Murach s Java SE 6, you can complete this exercise when you finish chapter 1.
13 How to use NetBeans with Murach s Java SE 6 13 An application that prints text to the console Description When you run an application, NetBeans automatically compiles the application. As a result, you don t need to compile an application separately. If you want to compile an application without running it, though, you can select one of the commands from the Build menu. To run the main class from the main project, press F6 or select the Run Main Project command from the Run menu or from the toolbar. If necessary, you can set the main project, by right-clicking on the project and selecting the Set Main Project command. If necessary, you can set the main class, by right-clicking on the project, selecting the Properties command, selecting the Run category, and using the dialog box to specify the main class for the project. To run a class that has a main method, right-click on the.java file and select the Run File command. When the application prints to the console, NetBeans displays an Output window like the one shown above. Figure 6 How to compile and run an application
14 14 How to use NetBeans with Murach s Java SE 6 How to run a console application that gets user input In addition to printing data to the console, a console app can also get input from a user. Unfortunately, the Output window that NetBeans uses as the default console doesn t act like a typical console window. Worse, NetBeans has a bug that prevents you from using the print method of the System.out object when working with console applications that use the Output window. As a result, when developing console apps that get user input, we recommend using an interactive console that was developed by Eric G. Berkowitz, an Associate Professor at Roosevelt University in Chicago. To use this interactive console instead of the Output window, you can follow the procedure shown in figure 7. To start, you must add the file named eric.jar to the Libraries folder for your project. This file is included in the NetBeans versions of the applications that you can download from our web site ( After you add the eric.jar file to your project, you must add a line of code to the beginning of your application that starts the interactive console. This line of code creates a new instance of the Console class that s stored in the eric package of the eric.jar file. As a result, the applications use the interactive console instead of the Output window that s available from NetBeans. Once you ve added this line of code to the beginning of your console app, you can run the application as you would normally. When you do, the interactive console should appear and the application should print some text to the console that prompts you to enter data. Then, you can type the input into the console and press Enter. When you do, the application will continue until it finishes or until it prompts you for more information. In this figure, for example, the application prompted me to enter a subtotal, and I typed 100 and pressed Enter. Then, the application asked me if I wanted to continue. At this point, the application is still running, and I can enter y to continue or n to stop the application. However, even if I enter n to stop the application, NetBeans doesn t finish running the application until you close the interactive console window. As a result, you should always close the console window after you re done running an application. Or, if you don t want to finish running the application, you can stop the application at any point during its execution by closing the interactive console window. When you re learning Java, it s common to create applications that use the console to get input from the user and to display output to the user. You ll learn how to create this type of application in chapter 2 of our book, and this type of application is used in chapters 2 through 14.
15 How to use NetBeans with Murach s Java SE 6 15 A console app that uses an interactive console to get input from a user How to use Eric G. Berkowitz s interactive console Add the eric.jar file to the Libraries folder for your project. To do that, right-click on the Libraries folder, select the Add Jar/Folder, and use the resulting dialog box to select the jar file (which should be in c:\murach\java6\netbeans). Add the following line of code to the beginning of your console application: new eric.console(); When you run the application, the interactive console window will appear and you can enter text by typing text and pressing the Enter key. When you re done running the application, close the console window. Description NetBeans has a bug that prevents it from working properly with the print method of the System.out object. As a result, we recommend using the interactive console that was developed by Eric G. Berkowitz. The eric.jar file is included with the NetBeans versions of the applications that are available from our web site, and these applications have already been configured to use the interactive console. Figure 7 How to run a console application that gets user input
16 16 How to use NetBeans with Murach s Java SE 6 How to open and close projects and import source code Once you understand how to use NetBeans to run simple applications like the ones presented in chapters 1 and 2, you may want to add more projects to the Projects window. For example, if you have an existing NetBeans project that isn t displayed in the Projects window, you may want to add that project to the project window by opening it. Or, if you have some code that was created with a text editor or another IDE, you may want to add a new project to the Projects window and import this code into that project so you can work with it. Then, if the Projects window becomes cluttered with multiple projects, you may want to remove one or more of these projects from the Projects window. For example, if you download the NetBeans version of the source code for Murach s Java SE 6, you ll find that the applications folder contains more than 10 projects. Similarly, the exercises folder contains over 40 projects. As a result, you won t want to have all of these projects open at the same time. Instead, you can open the ones you want to work with and close them when you re done with them. How to open a project To add an existing project to the Projects window, you can select the Open command from the File menu and use the Open Project dialog box as shown in figure 8. To start, you can navigate to the folder that contains the project or projects that you want to add. When you do, all of the possible projects will be displayed in the Open Project dialog box so you can select the projects that you want to add. In this figure, for example, the Open Project dialog box shows all of the existing NetBeans projects for the applications presented in Murach s Java SE 6. To clearly indicate when a folder is a project folder, the Open Project dialog box displays a small green icon in the lower right corner of the folder icon. In this figure, for example, all of the folder icons have this small green icon. As a result, you can add any of these projects to the Projects window by selecting the folder and clicking on the Open Project Folder button. How to close a project To remove a project from the Projects window, you can right-click on the project and select the Close Project command. For example, to remove the project named TestApp that s shown in figure 7, you can right-click on the project in the Projects window and select the Close Project command. Since this doesn t delete the files for the project, you can easily open the project later. Alternately, you can remove the project from the Projects window and delete its files by right-clicking on the project and selecting the Delete Project
17 How to use NetBeans with Murach s Java SE 6 17 The dialog box for opening an existing NetBeans project Description To add a project to the Projects window, right-click on the project in the Projects window and select the Open Project command. Then, use the Open Project dialog box to locate the folder for the project and click on the Open Project Folder button. The Open Project dialog box identifies a NetBeans project by displaying a small icon in the lower right corner of the icon for its project folder. To remove a project from the Projects window, right-click on the project in the Projects window and select the Close command. You can download a zip file from that contains the NetBeans projects for all of the applications described in Murach s Java SE 6. Figure 8 How to open and close existing projects
18 18 How to use NetBeans with Murach s Java SE 6 command. When you do, NetBeans will prompt you to confirm the deletion. By default, NetBeans deletes most of the files for the project but does not delete the source code. However, if you select the Also Delete Sources option, NetBeans will delete all folders and files for the project. Of course, if you delete the files from a project, it s no longer easy to open the project with NetBeans. As a result, you ll only want to use this option if you don t plan on using NetBeans to work with the project anymore. Now that you know how to run the interactive console and how to open existing projects, you have all the skills you need to complete the second exercise that s presented at the end of this tutorial. If you re working through Murach s Java SE 6, you should do this exercise before you do the exercises for chapter 2 of the book. How to import existing Java files into a new project Before you import existing Java files into a NetBeans project, you should move or copy the.java files into the right folder for storing your source code. Often, that means moving the.java files into a subfolder of the folder for the project. In this figure, for example, the.java files are stored in the src subfolder of the C:\murach\java6\netbeans\applications\Ch02 folder. Once you have stored the.java files in the correct folder, you can use the New Project dialog box to create a new project and import these files into the project. To start, you can select the New Project command from the File menu to display the first dialog box shown in figure 9. In this dialog box, you can select the Java Project with Existing Sources option to create a new project that imports existing.java files. Then, you can use the second dialog box shown to specify the name and location for the project. In this figure, for example, the second dialog box creates a project named Ch02 in the C:\murach\java6\netbeans\applications\Ch02 folder. Note that this folder already exists since it had to be created to store the src subfolder that contains the.java files.
19 How to use NetBeans with Murach s Java SE 6 19 The first dialog box for importing Java files into a NetBeans project The second dialog box for importing Java files into a NetBeans project Figure 9 How to import existing Java files into a new project (part 1 of 2)
20 20 How to use NetBeans with Murach s Java SE 6 Finally, in the third dialog box, you can select the src folder that contains the.java files. When you click on the Finish button to complete the process NetBeans creates the Ch02 project and imports all.java files in the src subfolder of this project. When you use this technique to import.java files, you need to pay attention to the packages that contain these files. If you use the third dialog box to select the root folder for the application you want to import, NetBeans usually places the.java files in the appropriate folders. If, for example, the src folder contains a subfolder named murach/business that corresponded with a package named murach.business, NetBeans will place any classes within this subfolder in the corresponding package within the Ch02 project. Usually, that s what you want when you re importing.java files. If it isn t, you can use the third dialog box to import the files in the murach/business subfolder into the default package. Or, you can use the skills described in figure 14 to reorganize these packages.
21 How to use NetBeans with Murach s Java SE 6 21 The third dialog box for importing Java files into a NetBeans project Description Before you import existing Java files into a new NetBeans project, you should move or copy your.java files into the folder where you want to store your source code. In this figure, for example, the source files are stored in the Ch02\src folder. To import existing Java files into a new NetBeans project, select the New Project command from the File menu, select the Java Project with Existing Sources option and respond to the resulting dialog boxes. Figure 9 How to import existing Java files into a new project (part 2 of 2)
22 22 How to use NetBeans with Murach s Java SE 6 Object-oriented development with NetBeans NetBeans has many features that make it easier to work with the object-oriented programming techniques that are presented in chapters 6 through 9 of Murach s Java SE 6. For example, NetBeans makes it easy to create get and set methods for a class, to begin coding a class that implements an interface, and to store classes and interfaces in packages. However, these skills don t make sense until you understand object-oriented programming. As a result, you may want to read chapters 6 through 9 of Murach s Java SE 6 before you go through the topics that follow. How to create a new class In figure 3, you learned how to create a project that contains a single class that contains a main method. However, when you start developing object-oriented applications, you ll need to add other classes to your project. To do that, you can display the New Java Class dialog box shown in figure 10. Then, you can use this dialog box to add new classes to your project. In this figure, for example, the New Java Class dialog specifies a public class named Product. Although the New Java Class dialog box encourages you to enter a package for the class, this isn t required. If you don t enter a package for the class, NetBeans will use the default package. However, if you enter a package for the class, NetBeans will automatically create a folder for the package and store the class within that package. For more information about working with packages, see figure 14 of this tutorial and chapter 9 of Murach s Java SE 6.
23 How to use NetBeans with Murach s Java SE 6 23 The dialog box for creating a new class Description To create a new class, right-click on the package where you want to add the class, select the New Java Class command, and respond to the resulting dialog boxes. You must enter a name for the class in the Class Name text box. Although this dialog box encourages you to enter a package for the class, this isn t required. If you don t enter a package for the class, NetBeans will use the default package. Figure 10 How to create a new class
24 24 How to use NetBeans with Murach s Java SE 6 How to work with classes Figure 11 describes a few skills that are useful for working with classes. To start, after you enter the private fields for a class, you can generate the get and set methods for those fields. In this figure, for example, the Encapsulate Fields dialog box will generate one get and one set method for each of the private fields for the class. By default, the get and set methods for a field are formatted like this: public String getcode() { return code; } public void setcode(string code) { this.code = code; } However, if you have another coding style that you prefer, you can select the Tools Options command, click on the Editor tab, and use it change the coding style. For example, you can select the Add New Line Before Brace option to add a new line character before the opening braces. Once you ve created a class that contains multiple methods, you can use the Navigator window to navigate to that method. To do that, just double-click on the method in the Navigator window. In this figure, for example, you could double-click on the getformattedprice method to display that method in the code editor. Although the usefulness of this feature isn t obvious for a short class like the Product class shown in this figure, it s very helpful for longer classes.
25 How to use NetBeans with Murach s Java SE 6 25 The NetBeans window for the Product application in chapter 6 The dialog box for generating the get and set methods for a field Description To generate the get and set methods for a field, select the Refactor Encapsulate Fields command from the menu system and respond to the resulting dialog boxes. To jump to a method, double-click on the method in the Navigator window. Figure 11 How to work with classes
26 26 How to use NetBeans with Murach s Java SE 6 How to work with interfaces Figure 12 shows the NetBeans window for the Product Maintenance application presented in chapter 8. If you look at the Projects window, you can see that the project for this application contains source code files for several classes and interfaces. If you expand the nodes for the.java files that contain the source code, you can see that NetBeans uses different icons to identify the files as classes or interfaces. In this figure, for example, the DAOFactory.java file contains the source code for a class while the ProductDAO.java and ProductReader.java files contain the source code for interfaces. To add an interface, you can right-click on the package where you want to add the interface and select the New Java Interface command. Then, you can use the resulting dialog box to enter a name for the interface. This dialog box works like the one for creating a new class that s shown in figure 10. Once you ve added an interface, you shouldn t have any trouble entering and editing the code for the interface. In general, you can use many of the same skills that you use for entering and editing the code for a class.
27 How to use NetBeans with Murach s Java SE 6 27 The NetBeans window for the Product Maintenance application in chapter 8 Description The Projects window identifies interfaces by using the interface icon, which is a small circle and a large circle connected by two lines. To add an interface to a project, right-click on the package you want to add the interface to, select the New Java Interface command, and use the resulting dialog box to enter a name for the interface. Note The products.txt file that s used by this application is stored in the netbeans\ch08_productmaint folder. In other words, it s stored in the root folder for the project. Figure 12 How to work with interfaces
28 28 How to use NetBeans with Murach s Java SE 6 How to start a class that implements an interface When coding a class that implements an interface, you can automatically generate all the method stubs for the interface. To do that, you can begin by creating a new class. Then, you enter the implements keyword followed by the interface or interfaces that the class implements. When you do, a yellow light bulb icon will be displayed to the left of the declaration for the class. If you click on this icon, you ll get a menu with the Implement all abstract methods command as shown in figure 13. To generate all method stubs for the interfaces specified by the class declaration, you can select this command. Then, NetBeans will generate the method stubs for all of the methods specified by the interface or interfaces that are implemented by the class.
29 How to use NetBeans with Murach s Java SE 6 29 A class that implements the ProductDAO interface in chapter 8 Description When coding a class that implements an interface, you can automatically generate all the method stubs for the interface. To do that, create a new class as described in figure 10, use the implements keyword to identify the interface, click on the light bulb icon, and select the Implement all abstract methods command as shown above. Figure 13 How to start a class that implements an interface
30 30 How to use NetBeans with Murach s Java SE 6 How to work with packages Often, the classes for an application are organized into packages. Compared to using a text editor, NetBeans makes it easy to create packages and to store your classes in packages. When a project contains packages, you can use the Projects window to navigate through the project s packages. To do that, you can click on the plus and minus signs to the left of the packages to expand or collapse them. In figure 14, for example, the Projects window displays the four packages that are used for the Line Item application that s presented in chapter 9 of Murach s Java SE 6. To get started with packages, you can add a new package to a project by right-clicking on the project and selecting the New Java Package command. When you do, you ll get a dialog box that allows you to enter a name for the package. As you create packages, remember that packages correspond to the folders and subfolders that are used to store the source code. In this figure, for example, the murach.business package is stored in the murach/business subfolder of the Ch09 folder. Once you ve created some packages for your application, NetBeans can automatically add the necessary package statements when you create a new class or interface. For example, if you right-click on the murach.business package and select the New Java Class command, the murach.business package will automatically be added to the New Java Class dialog box. Then, when you complete this dialog box, NetBeans will automatically add the necessary package statement at the beginning of the class. If you need to delete a package, you can right-click on the package and select the Delete command from the resulting menu. This will delete the folder for the package and all subfolders and classes within that folder.
31 How to use NetBeans with Murach s Java SE 6 31 The NetBeans window for the Line Item application in chapter 9 Description To navigate through existing packages, use the Projects window to expand or collapse the packages within a project. To add a new package to a project, right-click on the Source Packages folder in the Projects window, select the New Java Package command, and respond to the resulting dialog box. This creates a subfolder within the current folder. If you add a new class or interface to a package, NetBeans automatically adds the necessary package statement to the class or interface. To remove a package from a project, right-click on the package and select the Delete command from the resulting menu. This will delete the folder for the package and all subfolders and files within that folder. Figure 14 How to work with packages
32 32 How to use NetBeans with Murach s Java SE 6 How to generate documentation NetBeans also makes it easy to generate the documentation for your classes. First, you make sure that your document has javadoc comments that describe its constructors and methods, and you make sure that your classes are stored in the appropriate packages. (Both of these skills are described in chapter 9 of our book.) Then, you can generate the documentation by right-clicking on the project in the Projects window and selecting the Generate Javadoc for Project command. When you do, NetBeans will generate the Java documentation for the project and display it in the default web browser. By default, NetBeans stores the documentation for a project in a subfolder named dist\javadoc that s subordinate to the project s root folder. If this folder already contains documentation when you generate the documentation, NetBeans will overwrite these files with the new ones, which is usually what you want.
33 How to use NetBeans with Murach s Java SE 6 33 The documentation for the application in chapter 9 Description To generate or view the documentation for a project, you can right-click on the project folder in the Projects window and select the Generate Javadoc for Project command. When you do, NetBeans will generate the Java documentation for the project and display it in the default web browser. By default, NetBeans stores the documentation for a project in a subfolder named dist\javadoc that s subordinate to the project s root folder. If the project already contains documentation, NetBeans will overwrite existing files without any warning prompts. Figure 15 How to generate documentation
34 34 How to use NetBeans with Murach s Java SE 6 Debugging with NetBeans As you test applications, you will encounter errors that are commonly referred to as bugs. When that happens, you must find and fix those errors. This process is commonly known as debugging. Fortunately, NetBeans includes a powerful tool known as a debugger that can help you identify and fix these errors. How to set and remove breakpoints The first step in debugging an application is to figure out what is causing the bug. To do that, it s often helpful to view the values of the variables at different points in the application as it is executing. This will help you determine the cause of the bug, which is critical to debugging the application. The easiest way to view the variables at a particular point in an application is to set a breakpoint as shown in figure 16. To do that, you click to the left of the line of code on the vertical bar on the left side of the code editor window. Then, the breakpoint is marked by a red square to the left of the line of code. Later, when you run the application with the debugger, execution will stop just prior to the statement at the breakpoint, and you will be able to view the variables that are in scope at that point in the application. When debugging, it s important to set the breakpoint before the line in the application that s causing the bug. Often, you can figure out where to set a breakpoint by reading the runtime exception that s printed to the Console window when your application crashes. However, there are times when you will have to experiment a little before finding a good location to set a breakpoint. After you set the breakpoint, you need to run the application with the debugger attached. To do this, you can use the Debug Main Project button that s available from the toolbar (just to the right of the Run Main Project button). If you encounter any problems, try right-clicking on the.java file that contains the main method and selecting the Debug File command to run the application with the debugger. When you run the application with the debugger, NetBeans will display the debugging windows and buttons that are shown in figure 17. After you run the application with the debugger, the breakpoints will remain where you set them. If you want to remove a breakpoint, you can do that by clicking on the red square for the breakpoint.
35 How to use NetBeans with Murach s Java SE 6 35 A code editor window with a breakpoint Description A breakpoint is indicated by a small red square icon that s placed to the left of the line of code. To set a breakpoint for a line, open the code editor for the class and click on the vertical bar to the left of the line number. To remove a breakpoint, click on it. Once you set a breakpoint, you can use the Debug Main Project button on the toolbar to begin debugging. This works much like the Run Main Project button described in figure 6, except that it allows you to debug the application. Alternatively, you can right-click on the file that contains the main method you want to run and select the Debug File command. Figure 16 How to set and remove breakpoints
36 36 How to use NetBeans with Murach s Java SE 6 How to step through code When you run application with the debugger and it encounters a breakpoint, execution will stop just prior to the statement at the breakpoint. Once execution is stopped, a green arrow marks the next statement to be executed. In addition, NetBeans opens several new windows, including the Local Variables, Watches, and Call Stack windows shown in figure 17. Of these windows, the Local Variables window shows the values of the variables that are in scope at the current point of execution. NetBeans also displays some extra toolbar buttons while you re debugging. For instance, you can use the Step Over and Step Into buttons to step through the statements in an application, one statement at a time. This lets you observe exactly how and when the variable values change as the application executes, and that can help you determine the cause of a bug. Once you have stepped through the code that you re interested in, you can use the Continue button to continue execution until the next breakpoint is encountered. Or, you can use the Finish Debugger Session button to end the application s execution. How to inspect variables When you set breakpoints and step through code, the Local Variables window will automatically display the variables that are in scope. In figure 17, the execution point is in the calculatetotal method of the LineItem class. Here, the price variable is a local variable that s declared to store the price for the product. In addition, the quantity, total, and product instance variables of the LineItem object are also in scope. To view these variables, expand the variable named this, which is a standard variable name that s used to refer to the current object (in this case, the LineItem object). For numeric variables and strings, the value of the variable is shown in the Local Variables window. However, you can also view the values for an object by expanding the variable that refers to the object. In this figure, for example, you could expand the product variable by clicking on the plus sign to its left to view the values of its code, description, and price variables. How to inspect the stack trace When you re debugging, the Call Stack window shows the stack trace, which is a list of methods in the reverse order in which they were called. You can click on any of these methods to display the method and highlight the line of code that called the next method. This opens a new code editor window if necessary. Although the Call Stack window isn t shown in this figure, you could click on the Call Stack tab to display this window. If you experiment with is, you ll find that it can help you locate the origin of a bug.
37 How to use NetBeans with Murach s Java SE 6 37 A debugging session Description When a breakpoint is reached, program execution is stopped before the line is executed. In the code editor window, the arrow shows the line that will be executed next. The Local Variables window shows the values of the variables that are in scope for the current method. This includes static variables, instance variables, and local variables. If a variable refers to an object, you can view the values for that object by expanding the object to drill down through its variables. The Call Stack window shows the stack trace, which is a list of methods in the reverse order in which they were called. You can click on any of these methods to display the code for the method in a code editor window and to display the variables for that method in the Variables window. To step through the code one statement at a time, you can click on the Step Over or Step Into buttons that are available from the debugging toolbar. These buttons work the same, except that the Step Over button skips over called methods while the Step Into button steps through all of the statements in a called method. To continue executing code until the next breakpoint, select the Continue button. To end the application s execution, select the Finish Debugger Session button. Figure 17 How to work with the debugger
38 38 How to use NetBeans with Murach s Java SE 6 More NetBeans skills So far, this tutorial has presented all of the skills that you need for using NetBeans to develop the object-oriented Java applications described in Murach s Java SE 6. However, if you want to develop applets as described in chapter 18, you can use NetBeans to test an applet. Or, if you want to access classes that are stored in a JAR file, such as the eric.jar file described in figure 7 of this tutorial or the derby.jar file described in chapter 22 of the book, you need to learn how to add a JAR file to the build path. How to run an applet An applet is a special type of class that can be downloaded from an Internet or intranet server and run on a client computer within a web browser. To add an applet to a project, you can add a new class to the project as described in figure 10. Then, you can enter the code for the applet. For more information about coding applets, see chapter 18 of our book. To run an applet in the Applet Viewer, you can find the.java file for the applet in the Projects window, right-click on it, and select the Run File command. When you do, NetBeans will generate a temporary HTML page for the applet and display the applet in an Applet Viewer dialog box like the one in this figure. However, you may need to resize this dialog box to get the applet to display correctly. If you don t want to manually resize this dialog box, you can code an HTML page for the applet as described in chapter 18 of Murach s Java SE 6. Within this HTML page, you can specify the height and width for the applet. Then, you can run the applet by viewing this HTML page in a web browser.
39 How to use NetBeans with Murach s Java SE 6 39 The dialog box for running the applet in chapter 18 Description To run an applet in the Applet Viewer, right-click on the source code file for the applet and select the Run File command. If necessary, resize the Applet Viewer window so it is the correct size for the applet. If you want to run an applet in an HTML page instead of running it in the Applet Viewer, see chapter 18 of Murach s Java SE 6. Figure 18 How to run an applet
40 40 How to use NetBeans with Murach s Java SE 6 How to add a JAR file to the libraries for a project Most of the projects in Murach s Java SE 6 only use classes that are available from the standard JDK 1.6 libraries, which are available to all projects by default. However, to use classes that are stored in other libraries, you can add the JAR file (Java Archive file) for that library to the build path. In figure 7, for example, you learned how to add the library for Eric G. Berkowitz s interactive console to a project. Once you add a JAR file to a project, your project can use any classes within the JAR file when it compiles and runs. If, for example, you want to use a database driver other than the standard JDBC-ODBC bridge driver described in chapter 21, you need to add the JAR file for the database driver to the libraries of your project. Similarly, if you want to work with the Derby database described in chapter 22, you need to add the appropriate JAR file or files to the libraries for your project. To add a JAR file to the libraries for a project, you can begin by rightclicking on the Libraries folder for the project and selecting the Add JAR/Folder command. Then, you can use the resulting dialog box to select the JAR file. In figure 19, for example, I used this dialog box to select the derby.jar file that s needed to run the Product Maintenance application described in chapter 22. In this figure, you can see that the derby.jar file has been added to the Libraries folder for the project, above the eric.jar file and the JDK 1.6 libraries. As a result, any classes in this project will be able to use any of the classes that are stored within any of these libraries.
41 How to use NetBeans with Murach s Java SE 6 41 A JAR file that has been added to the application in chapter 22 Description If you add a JAR file to the libraries for a project, the JRE will be able to find and run any of the classes within the JAR file that are needed by the project. To add a JAR file to the libraries for a project, right-click on the Libraries folder for the project, select the Add JAR/Folder command, and use the resulting dialog box to select the JAR file. To remove a JAR file from the libraries for a project, right-click on the JAR file and select the Remove command. Figure 19 How to add a JAR file to the libraries for a project
42 42 How to use NetBeans with Murach s Java SE 6 Perspective In this tutorial, you learned all of the NetBeans skills that you need for developing the applications that are described in Murach s Java SE 6. Keep in mind, though, there s much more to learn about NetBeans. To start, you may want to review the documentation that s available from the NetBeans Help menu and from the NetBeans web site. Or, you may want to experiment with the commands in the Source and Refactor menus to see how they can help you enter and modify code. Summary NetBeans is a software framework for developing Integrated Development Environments (IDEs). The NetBeans IDE for Java is built on this framework. NetBeans is open-source, available for free from the NetBeans web site ( and runs on all modern operating systems. A project is a folder that contains all of the files that make up an application. The code completion feature can help you enter code. In NetBeans, an error is a line of code that won t compile. If you have multiple projects open, you can specify one project as the main project. If this project contains multiple classes that have a main method, you can specify one class as the main class. Then, you can use the Run Main Project command to run the main class in the main project. When you run an application from NetBeans, the default console is the Output window. However, this console has a bug that prevents it from working with the print method of the System.out object. As a result, to use NetBeans to test console applications, you may want to use a third-party console such as Eric G. Berkowitz s interactive console. NetBeans includes a debugger that can help you find and fix any bugs in your applications. To use the debugger, you can set a breakpoint to stop program execution. Then, you can step through the statements in your applications and view the values of variables and the stack trace.
43 How to use NetBeans with Murach s Java SE 6 43 Before you do any of the exercises that follow Before you do the exercises that follow, you should use the procedure shown in chapter 1 (figures 1-4) of Murach s Java SE 6 to install the JDK. Then, you should do the procedure in figure 1 of this tutorial to install NetBeans. In addition, you should download the NetBeans versions of the folders and files for our book from our web site ( and unzip them into the C:\murach\java6 folder. If this folder doesn t already exist, you should create it. Exercise 1 Use NetBeans to develop an application Please read chapter 1 in Murach s Java SE 6 before you do this exercise. This exercise will guide you through the process of using NetBeans to enter, save, compile, and run a simple application. Enter and save the source code 1. Start NetBeans. 2. Select the File New Project command from the NetBeans menu system. Then, use the resulting dialog box to create a project named TestApp that contains a class named TestApp that has a main method and store this project in this folder: C:\murach\java6\netbeans\exercises 3. Modify the generated code for the TestApp class so it looks like this (type carefully and use the same capitalization): public class TestApp { public static void main(string[] args) { System.out.println("This Java application has run successfully"); } } 4. Enter the statement that starts with System.out again, right after the first statement. This time, type sys and press Ctrl+Spacebar. Then, select system.out.println by double-clicking on it, and complete the statement. 5. Enter that statement a third time, right after the second statement. This time, type System, enter a period, and select out from the list that s displayed. Then, enter another period, select println(string x), and complete the statement. You should now have the same statement three times in a row. 6. Use the Save command (Ctrl+S) in the File menu to save your changes.
44 44 How to use NetBeans with Murach s Java SE 6 Run the application 7. Click on the Run Main Project button in the toolbar to compile and run the class. This should display This Java application has run successfully three times in a row in the Output tab. 8. Press F6 to run the application a second time. Introduce and correct a compile-time error 9. In the code editor window, delete the semicolon at the end of the first println statement, and NetBeans will display an error icon to the left of the statement. 10. Correct the error, and NetBeans will remove the error icon. 11. Save the files and press F6 to run the application again. 12. Exit NetBeans by selecting the Exit command from the File menu. Exercise 2 Use NetBeans to open and run an existing application Please read chapter 2 in Murach s Java SE 6 before you do this exercise. This exercise will guide you through the process of using NetBeans to open and run a simple console application that gets input from a user. Open and run the Invoice application 1. Start NetBeans, and open the project named Ch02 as described in figure 8. This project folder should be stored in this directory: C:\murach\java6\netbeans\exercises 2. Check to make sure that the eric.jar file has been added to the Libraries folder. If it hasn t, add this JAR file to the Libraries folder as described in figure Open the InvoiceApp.java file in the text editor. Note that the main method for this class begins with the line of code that starts the interactive console. 4. Run the Invoice application. To do that, right-click on the InvoiceApp.java file and select the Run File command. Respond to the prompts on the interactive console until you finish running the application. 5. Close the interactive console. Note that this causes the Output window to display a message that indicates that the application has finished running. Open and run the Test Scores application 6. Follow steps 3 through 5 for the TestScoreApp.java file. 7. Close the project, and exit from NetBeans.
45 How to use NetBeans with Murach s Java SE 6 45 Exercise 3 Test and debug an application Please read chapter 2 in Murach s Java SE 6 before you do this exercise. This exercise will guide you through the process of using NetBeans to test and debug an application. Test the Invoice application with invalid data 1. Open the ch02 project, and test the Invoice application with an invalid subtotal like $1000 (enter the dollar sign too). This time, the application will crash with a run-time error, and an error message will be displayed in the Console window. 2. Study the error message, and note the line number of the statement that caused the crash. Then, open the InvoiceApp.java file in the text editor and select the View Show Line Numbers command to display the line numbers to the left of each line of code. Based on this information, you should be able to figure out that the application crashed because $1000 isn t a valid double value. Set a breakpoint and step through the application 3. Set a breakpoint on this line of code: double discountpercent = 0.0; 4. Right-click on the InvoiceApp.java file in the Projects tab and select Debug File. This will run the application with the debugger on. 5. When the application prompts you for a subtotal entry, enter 100. Then, when the application reaches the breakpoint and stops, click on the Local Variables tab and note that the choice and subtotal variables have been assigned values. 6. Click on the Step Into button in the toolbar to step through the application one statement at a time. After each step, review the variables in the Local Variables tab to see how they have changed. Note too how the application steps through the if/else statement based on the subtotal value. 7. Click on the Continue button in the toolbar to continue the execution of the application at full speed. When prompted, enter the required values until you reach the breakpoint the second time. Then, click the Finish Debugger Session button to end the application. This should give you some idea of how useful the NetBeans debugging tools can be. 8. End the application, and exit from NetBeans.
46 46 How to use NetBeans with Murach s Java SE 6 What else you need to know before you do the exercises for Murach s Java SE 6 At this point, you have all the NetBeans skills you need for doing the exercises in Murach s Java SE 6. However, you need to know (1) how the names we used for the NetBeans exercise starts relate to those in the book exercises, and (2) how to copy and rename files. In addition, you need to use common sense as you follow the directions in the book. For example, when you use NetBeans to do these exercises, you ll find that NetBeans automatically performs some operations that are done manually in the exercises. That s particularly true when you apply the object-oriented skills described in chapters 6 through 9 to the exercises for those chapters. How the NetBeans project names relate to the book exercises By now, you should have unzipped all of the NetBeans exercise starts into: C:\murach\java6\netbeans\exercises\ Some of the projects stored in this directory have short names like ch02 and ch03 that map directly to the directory names that are used by the exercises in the book. Other projects have longer names that don t map directly to the directory names that are used in the exercises in the book. Here s how project names used by this workspace map to the directory names that are used by the exercises in the book: Project name Directory name ch06_lineitem ch06\lineitem ch08_displayabletest ch08\displayabletext As you do the exercises in the book, you need to convert the directory names that are used in the book to the project names that are available from the NetBeans directories. How to use NetBeans to copy and rename files As you do the exercises in the book, you are often asked to copy an existing application or to save one with a new name. Most of the time, the easiest way to do these tasks is to use the Projects tab. To copy a file, right-click on the.java file in the Projects tab, select the Copy command, right-click on the package in the Projects tab, and select the Paste command. If you re copying a file within the same project, NetBeans will automatically modify the name of the file so it doesn t conflict with the original file.
47 How to use NetBeans with Murach s Java SE 6 47 To rename a file, right-click on the.java file in the Projects tab, select the Refactor Rename command, and respond to the resulting dialog boxes. To do that, click on the Next button in the first dialog box. Then, after previewing the changes in the Refactoring window, click on the Do Refactoring button to complete the refactoring. If you change the name of a file, NetBeans automatically changes the name of the class, which is usually what you want. Examples of converting the book exercises to NetBeans Exercise 2-2 in the book asks you to save the TestScoreApp.java file as ModifiedTestScoreApp.java in the same directory. To do that, open the Ch02 project and use the Projects tab to display the TestScoreApp.java file that s stored in the default package. Then, right-click on the file, select the Copy command, right-click on the default package, and select the Paste command. When you do, NetBeans will create a new file named TestScoreApp_1.java. Finally, right-click on the TestScoreApp_1.java file, select the Refactor Rename command, click on the Next button in the first dialog box, and click on the Do Refactoring button in the Refactoring window. Exercise 3-2 in the book asks you to open a file named ModifiedTestScoreApp.java in the ch02 directory and save it in the ch03 directory as EnhancedTestScoreApp.java. To get the same result, you can use the Projects tab to open the ch02 and ch03 projects. Then, you can copy the file from the default package of the ch02 project to the default package of the ch03 project. Finally, you can rename the file by right-clicking on it, selecting the Refactor Rename command, clicking on the Next button in the first dialog box, and clicking on the Do Refactoring button in the Refactoring window. Exercise 6-1 in the book asks you to open the classes that are in the ch06\lineitem directory. To do that, open the existing project named ch06_lineitem. Then, use the Projects tab to open the classes in this project. Exercise 9-1 in the books asks you to use the Windows Explorer to create and work with the subdirectories that correspond with the packages for the application. With NetBeans, you can use the Projects tab to create packages and work with packages as described in figure 14 of this tutorial. This automates many aspects of working with packages.
How to test and debug an ASP.NET application
Chapter 4 How to test and debug an ASP.NET application 113 4 How to test and debug an ASP.NET application If you ve done much programming, you know that testing and debugging are often the most difficult
For Introduction to Java Programming, 5E By Y. Daniel Liang
Supplement H: NetBeans Tutorial For Introduction to Java Programming, 5E By Y. Daniel Liang This supplement covers the following topics: Getting Started with NetBeans Creating a Project Creating, Mounting,
Eclipse installation, configuration and operation
Eclipse installation, configuration and operation This document aims to walk through the procedures to setup eclipse on different platforms for java programming and to load in the course libraries for
The goal with this tutorial is to show how to implement and use the Selenium testing framework.
APPENDIX B: SELENIUM FRAMEWORK TUTORIAL This appendix is a tutorial about implementing the Selenium framework for black-box testing at user level. It also contains code examples on how to use Selenium.
Before you can use the Duke Ambient environment to start working on your projects or
Using Ambient by Duke Curious 2004 preparing the environment Before you can use the Duke Ambient environment to start working on your projects or labs, you need to make sure that all configuration settings
Installing and using XAMPP with NetBeans PHP
Installing and using XAMPP with NetBeans PHP About This document explains how to configure the XAMPP package with NetBeans for PHP programming and debugging (specifically for students using a Windows PC).
Hypercosm. Studio. www.hypercosm.com
Hypercosm Studio www.hypercosm.com Hypercosm Studio Guide 3 Revision: November 2005 Copyright 2005 Hypercosm LLC All rights reserved. Hypercosm, OMAR, Hypercosm 3D Player, and Hypercosm Studio are trademarks
Getting Started using the SQuirreL SQL Client
Getting Started using the SQuirreL SQL Client The SQuirreL SQL Client is a graphical program written in the Java programming language that will allow you to view the structure of a JDBC-compliant database,
IBM Operational Decision Manager Version 8 Release 5. Getting Started with Business Rules
IBM Operational Decision Manager Version 8 Release 5 Getting Started with Business Rules Note Before using this information and the product it supports, read the information in Notices on page 43. This
Wakanda Studio Features
Wakanda Studio Features Discover the many features in Wakanda Studio. The main features each have their own chapters and other features are documented elsewhere: Wakanda Server Administration Data Browser
Department of Veterans Affairs. Open Source Electronic Health Record Services
Department of Veterans Affairs Open Source Electronic Health Record Services MTools Installation and Usage Guide Version 1.0 June 2013 Contract: VA118-12-C-0056 Table of Contents 1. Installation... 3 1.1.
Java Language Tools COPYRIGHTED MATERIAL. Part 1. In this part...
Part 1 Java Language Tools This beginning, ground-level part presents reference information for setting up the Java development environment and for compiling and running Java programs. This includes downloading
Installing the Android SDK
Installing the Android SDK To get started with development, we first need to set up and configure our PCs for working with Java, and the Android SDK. We ll be installing and configuring four packages today
Introduction to Eclipse
Introduction to Eclipse Overview Eclipse Background Obtaining and Installing Eclipse Creating a Workspaces / Projects Creating Classes Compiling and Running Code Debugging Code Sampling of Features Summary
Programming with the Dev C++ IDE
Programming with the Dev C++ IDE 1 Introduction to the IDE Dev-C++ is a full-featured Integrated Development Environment (IDE) for the C/C++ programming language. As similar IDEs, it offers to the programmer
2 Getting Started with jgrasp 2.0
2 Getting Started with jgrasp 2.0 After you have successfully installed the Java JDK and jgrasp, you are ready to get started. For the examples in this section, Microsoft Windows and Java will be used.
Migrating to Excel 2010 from Excel 2003 - Excel - Microsoft Office 1 of 1
Migrating to Excel 2010 - Excel - Microsoft Office 1 of 1 In This Guide Microsoft Excel 2010 looks very different, so we created this guide to help you minimize the learning curve. Read on to learn key
Practice Fusion API Client Installation Guide for Windows
Practice Fusion API Client Installation Guide for Windows Quickly and easily connect your Results Information System with Practice Fusion s Electronic Health Record (EHR) System Table of Contents Introduction
Netbeans IDE Tutorial for using the Weka API
Netbeans IDE Tutorial for using the Weka API Kevin Amaral University of Massachusetts Boston First, download Netbeans packaged with the JDK from Oracle. http://www.oracle.com/technetwork/java/javase/downloads/jdk-7-netbeans-download-
Download and Installation Instructions. Android SDK and Android Development Tools (ADT)
Download and Installation Instructions for Android SDK and Android Development Tools (ADT) on Mac OS X Updated October, 2012 This document will describe how to download and install the Android SDK and
Code::Blocks Student Manual
Code::Blocks Student Manual Lawrence Goetz, Network Administrator Yedidyah Langsam, Professor and Theodore Raphan, Distinguished Professor Dept. of Computer and Information Science Brooklyn College of
Click Start > Control Panel > System icon to open System Properties dialog box. Click Advanced > Environment Variables.
Configure Java environment on Windows After installing Java Development Kit on Windows, you may still need to do some configuration to get Java ready for compiling and executing Java programs. The following
BIGPOND ONLINE STORAGE USER GUIDE Issue 1.1.0-18 August 2005
BIGPOND ONLINE STORAGE USER GUIDE Issue 1.1.0-18 August 2005 PLEASE NOTE: The contents of this publication, and any associated documentation provided to you, must not be disclosed to any third party without
Debugging Java Applications
Debugging Java Applications Table of Contents Starting a Debugging Session...2 Debugger Windows...4 Attaching the Debugger to a Running Application...5 Starting the Debugger Outside of the Project's Main
IT Quick Reference Guides Using Windows 7
IT Quick Reference Guides Using Windows 7 Windows Guides This sheet covers many of the basic commands for using the Windows 7 operating system. WELCOME TO WINDOWS 7 After you log into your machine, the
Using Karel with Eclipse
Mehran Sahami Handout #6 CS 106A September 23, 2015 Using Karel with Eclipse Based on a handout by Eric Roberts Once you have downloaded a copy of Eclipse as described in Handout #5, your next task is
Java with Eclipse: Setup & Getting Started
Java with Eclipse: Setup & Getting Started Originals of slides and source code for examples: http://courses.coreservlets.com/course-materials/java.html Also see Java 8 tutorial: http://www.coreservlets.com/java-8-tutorial/
Integrated Accounting System for Mac OS X
Integrated Accounting System for Mac OS X Program version: 6.3 110401 2011 HansaWorld Ireland Limited, Dublin, Ireland Preface Standard Accounts is a powerful accounting system for Mac OS X. Text in square
POOSL IDE User Manual
Embedded Systems Innovation by TNO POOSL IDE User Manual Tool version 3.0.0 25-8-2014 1 POOSL IDE User Manual 1 Installation... 5 1.1 Minimal system requirements... 5 1.2 Installing Eclipse... 5 1.3 Installing
POOSL IDE Installation Manual
Embedded Systems Innovation by TNO POOSL IDE Installation Manual Tool version 3.4.1 16-7-2015 1 POOSL IDE Installation Manual 1 Installation... 4 1.1 Minimal system requirements... 4 1.2 Installing Eclipse...
Customizing the SSOSessionTimeout.jsp page for Kofax Front Office Server 3.5.2
Customizing the SSOSessionTimeout.jsp page for Kofax Front Office Server 3.5.2 Date July 23, 2014 Applies To Kofax Front Office Server (KFS) 3.5.2.10 Summary This application note provides instructions
Microsoft Migrating to PowerPoint 2010 from PowerPoint 2003
In This Guide Microsoft PowerPoint 2010 looks very different, so we created this guide to help you minimize the learning curve. Read on to learn key parts of the new interface, discover free PowerPoint
Online Backup Client User Manual
For Mac OS X Software version 4.1.7 Version 2.2 Disclaimer This document is compiled with the greatest possible care. However, errors might have been introduced caused by human mistakes or by other means.
What's New in ADP Reporting?
What's New in ADP Reporting? Welcome to the latest version of ADP Reporting! This release includes the following new features and enhancements. Use the links below to learn more about each one. What's
Introduction to OpenOffice Writer 2.0 Jessica Kubik Information Technology Lab School of Information University of Texas at Austin Fall 2005
Introduction to OpenOffice Writer 2.0 Jessica Kubik Information Technology Lab School of Information University of Texas at Austin Fall 2005 Introduction: OpenOffice Writer is a word processing application
Lab 0 (Setting up your Development Environment) Week 1
ECE155: Engineering Design with Embedded Systems Winter 2013 Lab 0 (Setting up your Development Environment) Week 1 Prepared by Kirill Morozov version 1.2 1 Objectives In this lab, you ll familiarize yourself
Windows XP Pro: Basics 1
NORTHWEST MISSOURI STATE UNIVERSITY ONLINE USER S GUIDE 2004 Windows XP Pro: Basics 1 Getting on the Northwest Network Getting on the Northwest network is easy with a university-provided PC, which has
Microsoft Office PowerPoint 2003. Identify components of the PowerPoint window. Tutorial 1 Creating a Presentation
Microsoft Office PowerPoint 2003 Tutorial 1 Creating a Presentation 1 Identify components of the PowerPoint window You will recognize some of the features of the PowerPoint window that are common to Windows
Developing In Eclipse, with ADT
Developing In Eclipse, with ADT Android Developers file://v:\android-sdk-windows\docs\guide\developing\eclipse-adt.html Page 1 of 12 Developing In Eclipse, with ADT The Android Development Tools (ADT)
Internet Explorer 7. Getting Started The Internet Explorer Window. Tabs NEW! Working with the Tab Row. Microsoft QUICK Source
Microsoft QUICK Source Internet Explorer 7 Getting Started The Internet Explorer Window u v w x y { Using the Command Bar The Command Bar contains shortcut buttons for Internet Explorer tools. To expand
Microsoft Migrating to Word 2010 from Word 2003
In This Guide Microsoft Word 2010 looks very different, so we created this guide to help you minimize the learning curve. Read on to learn key parts of the new interface, discover free Word 2010 training,
Using the Query Analyzer
Using the Query Analyzer Using the Query Analyzer Objectives Explore the Query Analyzer user interface. Learn how to use the menu items and toolbars to work with SQL Server data and objects. Use object
Integrated Invoicing and Debt Management System for Mac OS X
Integrated Invoicing and Debt Management System for Mac OS X Program version: 6.3 110401 2011 HansaWorld Ireland Limited, Dublin, Ireland Preface Standard Invoicing is a powerful invoicing and debt management
JetBrains ReSharper 2.0 Overview Introduction ReSharper is undoubtedly the most intelligent add-in to Visual Studio.NET 2003 and 2005. It greatly increases the productivity of C# and ASP.NET developers,
How to Install Eclipse. Windows
1.00/1.001/1.002 Spring 2012 How to Install Eclipse Windows In 1.00/1.001/1.002, you will use the Eclipse Integrated Development Environment (IDE) to create, compile, and run Java programming assignments.
Browsing and working with your files and folder is easy with Windows 7 s new look Windows Explorer.
Getting Started with Windows 7 In Windows 7, the desktop has been given an overhaul and makeover to introduce a clean new look. While the basic functionality remains the same, there are a few new navigation
Word basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:
Word basics Word is a powerful word processing and layout application, but to use it most effectively, you first have to understand the basics. This tutorial introduces some of the tasks and features that
Code Estimation Tools Directions for a Services Engagement
Code Estimation Tools Directions for a Services Engagement Summary Black Duck software provides two tools to calculate size, number, and category of files in a code base. This information is necessary
13 Managing Devices. Your computer is an assembly of many components from different manufacturers. LESSON OBJECTIVES
LESSON 13 Managing Devices OBJECTIVES After completing this lesson, you will be able to: 1. Open System Properties. 2. Use Device Manager. 3. Understand hardware profiles. 4. Set performance options. Estimated
10 STEPS TO YOUR FIRST QNX PROGRAM. QUICKSTART GUIDE Second Edition
10 STEPS TO YOUR FIRST QNX PROGRAM QUICKSTART GUIDE Second Edition QNX QUICKSTART GUIDE A guide to help you install and configure the QNX Momentics tools and the QNX Neutrino operating system, so you can
Apache Directory Studio. User's Guide
Apache Directory Studio User's Guide Apache Directory Studio: User's Guide Version 1.5.2.v20091211 Copyright 2006-2009 Apache Software Foundation Licensed to the Apache Software Foundation (ASF) under
Getting Started on the Computer With Mouseaerobics! Windows XP
This handout was modified from materials supplied by the Bill and Melinda Gates Foundation through a grant to the Manchester City Library. Getting Started on the Computer With Mouseaerobics! Windows XP
WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.
WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts Classroom Setup Guide Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1 Table of Contents Part 1 - Minimum Software
Chronicle USER MANUAL
Chronicle USER MANUAL 1st Edition 2 IN THIS MANUAL Part One The Chronicle Interface The Overview Screen The Bill Detail Screen Part Two Creating, Editing and Viewing Bills Creating Your First Bill Editing
Appendix K Introduction to Microsoft Visual C++ 6.0
Appendix K Introduction to Microsoft Visual C++ 6.0 This appendix serves as a quick reference for performing the following operations using the Microsoft Visual C++ integrated development environment (IDE):
Q N X S O F T W A R E D E V E L O P M E N T P L A T F O R M v 6. 4. 10 Steps to Developing a QNX Program Quickstart Guide
Q N X S O F T W A R E D E V E L O P M E N T P L A T F O R M v 6. 4 10 Steps to Developing a QNX Program Quickstart Guide 2008, QNX Software Systems GmbH & Co. KG. A Harman International Company. All rights
Microsoft Word 2010. Quick Reference Guide. Union Institute & University
Microsoft Word 2010 Quick Reference Guide Union Institute & University Contents Using Word Help (F1)... 4 Window Contents:... 4 File tab... 4 Quick Access Toolbar... 5 Backstage View... 5 The Ribbon...
Contents. Launching FrontPage... 3. Working with the FrontPage Interface... 3 View Options... 4 The Folders List... 5 The Page View Frame...
Using Microsoft Office 2003 Introduction to FrontPage Handout INFORMATION TECHNOLOGY SERVICES California State University, Los Angeles Version 1.0 Fall 2005 Contents Launching FrontPage... 3 Working with
Business Portal for Microsoft Dynamics GP 2010. User s Guide Release 5.1
Business Portal for Microsoft Dynamics GP 2010 User s Guide Release 5.1 Copyright Copyright 2011 Microsoft. All rights reserved. Limitation of liability This document is provided as-is. Information and
Microsoft Dynamics GP. Business Analyzer
Microsoft Dynamics GP Business Analyzer April 5, 2013 Copyright Copyright 2013 Microsoft. All rights reserved. Limitation of liability This document is provided as-is. Information and views expressed in
Word 2010: The Basics Table of Contents THE WORD 2010 WINDOW... 2 SET UP A DOCUMENT... 3 INTRODUCING BACKSTAGE... 3 CREATE A NEW DOCUMENT...
Word 2010: The Basics Table of Contents THE WORD 2010 WINDOW... 2 SET UP A DOCUMENT... 3 INTRODUCING BACKSTAGE... 3 CREATE A NEW DOCUMENT... 4 Open a blank document... 4 Start a document from a template...
PTC Integrity Eclipse and IBM Rational Development Platform Guide
PTC Integrity Eclipse and IBM Rational Development Platform Guide The PTC Integrity integration with Eclipse Platform and the IBM Rational Software Development Platform series allows you to access Integrity
ADOBE DRIVE CC USER GUIDE
ADOBE DRIVE CC USER GUIDE 2 2013 Adobe Systems Incorporated. All rights reserved. Adobe Drive CC User Guide Adobe, the Adobe logo, Creative Cloud, Creative Suite, Illustrator, InCopy, InDesign, and Photoshop
PUBLIC Password Manager for SAP Single Sign-On Implementation Guide
SAP Single Sign-On 2.0 SP1 Document Version: 1.0 2015-10-02 PUBLIC Password Manager for SAP Single Sign-On Implementation Guide Content 1 Password Manager....4 2 Password Manager Installation Guide....5
Dreamweaver and Fireworks MX Integration Brian Hogan
Dreamweaver and Fireworks MX Integration Brian Hogan This tutorial will take you through the necessary steps to create a template-based web site using Macromedia Dreamweaver and Macromedia Fireworks. The
Using Microsoft Visual Studio 2010. API Reference
2010 API Reference Published: 2014-02-19 SWD-20140219103929387 Contents 1... 4 Key features of the Visual Studio plug-in... 4 Get started...5 Request a vendor account... 5 Get code signing and debug token
Installing (1.8.7) 9/2/2009. 1 Installing jgrasp
1 Installing jgrasp Among all of the jgrasp Tutorials, this one is expected to be the least read. Most users will download the jgrasp self-install file for their system, doubleclick the file, follow the
TM Online Storage: StorageSync
TM Online Storage: StorageSync 1 Part A: Backup Your Profile 1: How to download and install StorageSync? Where to download StorageSync? You may download StorageSync from your e-storage account. Please
MICROSOFT ACCESS 2003 TUTORIAL
MICROSOFT ACCESS 2003 TUTORIAL M I C R O S O F T A C C E S S 2 0 0 3 Microsoft Access is powerful software designed for PC. It allows you to create and manage databases. A database is an organized body
Outlook basics. Identify user interface elements that you can use to accomplish basic tasks.
Outlook basics Outlook is a powerful tool for managing your e-mail, contacts, calendars, and tasks. To use it most effectively, you first have to understand the basics. This tutorial introduces some of
<Insert Picture Here> What's New in NetBeans IDE 7.2
Slide 1 What's New in NetBeans IDE 7.2 The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated
You may have been given a download link on your trial software email. Use this link to download the software.
BackupVault / Attix5 Server Quickstart Guide This document takes about 5 minutes to read and will show you how to: Download the software Install the Attix5 Professional Backup software Backup your files
Distribution List Manager User s Manual
Distribution List Manager User s Manual Welcome... 2 Configuring the Add-in... 3 Settings Tab... 3 Advanced Tab... 4 Troubleshooting... 5 Distribution List Manager Copyright 2008 Sperry Software Inc. P
Creating Personal Web Sites Using SharePoint Designer 2007
Creating Personal Web Sites Using SharePoint Designer 2007 Faculty Workshop May 12 th & 13 th, 2009 Overview Create Pictures Home Page: INDEX.htm Other Pages Links from Home Page to Other Pages Prepare
Sendspace Wizard Desktop Tool Step-By-Step Guide
Sendspace Wizard Desktop Tool Step-By-Step Guide Copyright 2007 by sendspace.com This publication is designed to provide accurate and authoritative information for users of sendspace, the easy big file
RecoveryVault Express Client User Manual
For Linux distributions Software version 4.1.7 Version 2.0 Disclaimer This document is compiled with the greatest possible care. However, errors might have been introduced caused by human mistakes or by
Developing SQL and PL/SQL with JDeveloper
Seite 1 von 23 Developing SQL and PL/SQL with JDeveloper Oracle JDeveloper 10g Preview Technologies used: SQL, PL/SQL An Oracle JDeveloper Tutorial September 2003 Content This tutorial walks through the
Managing documents, files and folders
Managing documents, files and folders Your computer puts information at your fingertips. Over time, however, you might have so many files that it can be difficult to find the specific file you need. Without
TUTORIAL 4 Building a Navigation Bar with Fireworks
TUTORIAL 4 Building a Navigation Bar with Fireworks This tutorial shows you how to build a Macromedia Fireworks MX 2004 navigation bar that you can use on multiple pages of your website. A navigation bar
How to use the Eclipse IDE for Java Application Development
How to use the Eclipse IDE for Java Application Development Java application development is supported by many different tools. One of the most powerful and helpful tool is the free Eclipse IDE (IDE = Integrated
Attix5 Pro Server Edition
Attix5 Pro Server Edition V7.0.2 User Manual for Mac OS X Your guide to protecting data with Attix5 Pro Server Edition. Copyright notice and proprietary information All rights reserved. Attix5, 2013 Trademarks
Microsoft Word 2011: Create a Table of Contents
Microsoft Word 2011: Create a Table of Contents Creating a Table of Contents for a document can be updated quickly any time you need to add or remove details for it will update page numbers for you. A
Introduction to SketchUp
Introduction to SketchUp This guide is handy to read if you need some basic knowledge to get started using SketchUp. You will see how to download and install Sketchup, and learn how to use your mouse (and
1. Product Information
ORIXCLOUD BACKUP CLIENT USER MANUAL LINUX 1. Product Information Product: Orixcloud Backup Client for Linux Version: 4.1.7 1.1 System Requirements Linux (RedHat, SuSE, Debian and Debian based systems such
Attix5 Pro Server Edition
Attix5 Pro Server Edition V7.0.3 User Manual for Linux and Unix operating systems Your guide to protecting data with Attix5 Pro Server Edition. Copyright notice and proprietary information All rights reserved.
Content Author's Reference and Cookbook
Sitecore CMS 6.5 Content Author's Reference and Cookbook Rev. 110621 Sitecore CMS 6.5 Content Author's Reference and Cookbook A Conceptual Overview and Practical Guide to Using Sitecore Table of Contents
If you know exactly how you want your business forms to look and don t mind
appendix e Advanced Form Customization If you know exactly how you want your business forms to look and don t mind detail work, you can configure QuickBooks forms however you want. With QuickBooks Layout
Florence School District #1
Florence School District #1 Module 2: SMART Board Basics and Beyond 1 SMART Board Software and Beyond In SMART Notebook software, you can create or open SMART Notebook software (.notebook) files. After
Toad for Data Analysts, Tips n Tricks
Toad for Data Analysts, Tips n Tricks or Things Everyone Should Know about TDA Just what is Toad for Data Analysts? Toad is a brand at Quest. We have several tools that have been built explicitly for developers
Umbraco v4 Editors Manual
Umbraco v4 Editors Manual Produced by the Umbraco Community Umbraco // The Friendly CMS Contents 1 Introduction... 3 2 Getting Started with Umbraco... 4 2.1 Logging On... 4 2.2 The Edit Mode Interface...
Chief Architect X6. Download & Installation Instructions. Chief Architect, Inc. 6500 N. Mineral Dr. Coeur d Alene, Idaho 83815 www.chiefarchitect.
Chief Architect X6 Download & Installation Instructions Chief Architect, Inc. 6500 N. Mineral Dr. Coeur d Alene, Idaho 83815 www.chiefarchitect.com Contents Chapter 1: Installation What s Included with
Samsung Xchange for Mac User Guide. Winter 2013 v2.3
Samsung Xchange for Mac User Guide Winter 2013 v2.3 Contents Welcome to Samsung Xchange IOS Desktop Client... 3 How to Install Samsung Xchange... 3 Where is it?... 4 The Dock menu... 4 The menu bar...
Getting Started Guide. Chapter 14 Customizing LibreOffice
Getting Started Guide Chapter 14 Customizing LibreOffice Copyright This document is Copyright 2010 2012 by its contributors as listed below. You may distribute it and/or modify it under the terms of either
Silect Software s MP Author
Silect MP Author for Microsoft System Center Operations Manager Silect Software s MP Author User Guide September 2, 2015 Disclaimer The information in this document is furnished for informational use only,
Online Backup Client User Manual
For Linux distributions Software version 4.1.7 Version 2.0 Disclaimer This document is compiled with the greatest possible care. However, errors might have been introduced caused by human mistakes or by
Tutorial 5: Developing Java applications
Tutorial 5: Developing Java applications p. 1 Tutorial 5: Developing Java applications Georgios Gousios [email protected] Department of Management Science and Technology Athens University of Economics and
Desktop, Web and Mobile Testing Tutorials
Desktop, Web and Mobile Testing Tutorials * Windows and the Windows logo are trademarks of the Microsoft group of companies. 2 About the Tutorial With TestComplete, you can test applications of three major
Custom Reporting System User Guide
Citibank Custom Reporting System User Guide April 2012 Version 8.1.1 Transaction Services Citibank Custom Reporting System User Guide Table of Contents Table of Contents User Guide Overview...2 Subscribe
Vodafone PC SMS 2010. (Software version 4.7.1) User Manual
Vodafone PC SMS 2010 (Software version 4.7.1) User Manual July 19, 2010 Table of contents 1. Introduction...4 1.1 System Requirements... 4 1.2 Reply-to-Inbox... 4 1.3 What s new?... 4 2. Installation...6
