| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> |
| <html> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| <title> |
| Creating a Java scrapbook page |
| </title> |
| </head> |
| <body> |
| <h1> |
| Creating a Java scrapbook page |
| </h1> |
| <p> |
| The scrapbook allows Java expressions, to be run, inspected, and displayed under the control of the debugger. Breakpoints and exceptions |
| behave as they do in a regular debug |
| session. |
| </p> |
| <p> |
| Code is edited on a scrapbook page. A VM is launched for each scrapbook page in which expressions are being evaluated. The first time an expression is evaluated in a scrapbook page after it is opened, a VM is |
| launched. The VM for a page will remain active until the page is closed, terminated explicitly (in the debugger or via the <strong>Stop the Evaluation</strong> button in the |
| editor toolbar), or when a <em>System.exit()</em> is evaluated. |
| </p> |
| <p> |
| There are several ways to open the New Java Scrapbook Page |
| wizard. |
| </p> |
| <ul> |
| <li> |
| Click the <strong>Create a Scrapbook Page</strong> button in the workbench toolbar. |
| </li> |
| <li> |
| From the menu bar in the Java Perspective, select <strong>File</strong> > <strong>New</strong> > <strong>Scrapbook Page</strong>. |
| </li> |
| <li> |
| From the menu bar in any non-Java Perspective, select <strong>File</strong> > <strong>New</strong> > <strong>Other</strong>. Then select <strong>Java</strong> on |
| the left, and on the right, select <strong>Scrapbook Page</strong>. Then click |
| <strong>Next</strong>. |
| </li> |
| </ul> |
| Once you've opened the New Java Scrapbook Page wizard:. |
| <ol> |
| <li> |
| In the <strong><strong>Enter or select the folder</strong> field</strong>, type or click <strong>Browse</strong> to select the container for the new page. |
| </li> |
| <li> |
| In the <strong><strong>File name</strong></strong> field, type a name for the new page. The <em>.jpage</em> extension will be added automatically if you do not type it |
| yourself. |
| </li> |
| <li> |
| Click <strong><strong>Finish</strong></strong> when you are done. The new scrapbook page opens in an editor. |
| </li> |
| </ol> |
| <p> |
| <img border="0" src="../images/ngrelc.gif" alt="Related concepts" width="159" height="27"><br> |
| <a href="../concepts/concepts-11.htm">Scrapbook</a><br> |
| <a href="../concepts/concepts-3.htm">Java projects</a> |
| </p> |
| <p> |
| <img border="0" src="../images/ngrelt.gif" alt="Related tasks" width="159" height="27"><br> |
| <a href="../tasks/tasks-26.htm">Creating a new source folder</a><br> |
| <a href="../tasks/tasks-11.htm">Creating Java elements</a><br> |
| <a href="tasks-126.htm">Running and debugging</a> |
| </p> |
| <p> |
| <img border="0" src="../images/ngrelr.gif" alt="Related reference" width="159" height="27"><br> |
| <a href="../reference/ref-34.htm">Java scrapbook page</a> |
| </p> |
| <p> |
| <a href="../hglegal2003.htm"><img src="../images/ngibmcpy2003.gif" alt="Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved." border="0" width="324" height= |
| "14"></a> |
| </p> |
| </body> |
| </html> |
| |