This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 07c2ef5 Automated site publishing by Jenkins build 611
07c2ef5 is described below
commit 07c2ef5864e569b95d6e22eafad076a9018e2348
Author: jenkins <[email protected]>
AuthorDate: Sun Feb 24 19:38:51 2019 +0000
Automated site publishing by Jenkins build 611
---
content/kb/docs/contributing.html | 2 +-
content/kb/docs/java/javase-intro.html | 625 +++++++++++++++------------------
2 files changed, 287 insertions(+), 340 deletions(-)
diff --git a/content/kb/docs/contributing.html
b/content/kb/docs/contributing.html
index 9edff71..100d0a3 100644
--- a/content/kb/docs/contributing.html
+++ b/content/kb/docs/contributing.html
@@ -119,7 +119,7 @@
<div id="preamble">
<div class="sectionbody">
<div class="paragraph">
-<p>The Apache NetBeans Tutorials were included in the third donation from
Oracle to the Apache Software Foundation. Many of these tutorials need to be
reviewed. Everybody can help out in the review process. All you need is a web
browser, a GitHub account and a basic knowledge of <a
href="https://asciidoctor.org/">AsciiDoc</a>.</p>
+<p>The Apache NetBeans Tutorials were included in the third donation from
Oracle to the Apache Software Foundation. Many of these tutorials need to be
reviewed. Everybody can help out in the review process. All you need is a web
browser, a GitHub account and a basic knowledge of <a
href="https://asciidoc.org/">AsciiDoc</a>.</p>
</div>
<div class="paragraph">
<p>This page describes some tips, tricks and conventions for reviewing
tutorials for Apache NetBeans.</p>
diff --git a/content/kb/docs/java/javase-intro.html
b/content/kb/docs/java/javase-intro.html
index bc118da..db1baa1 100644
--- a/content/kb/docs/java/javase-intro.html
+++ b/content/kb/docs/java/javase-intro.html
@@ -81,16 +81,8 @@
<h1 class="sect0">Developing General Java Applications</h1>
<div class="sectionbody">
- <div class="admonitionblock note">
- <table>
- <tbody><tr>
- <td class="icon"><i class="fa icon-note"
title="Note"></i></td>
- <td class="content">This tutorial needs a review.
- You can <a
href="https://issues.apache.org/jira/projects/NETBEANS/issues">open a JIRA
issue</a>,
- or <a
href="https://github.com/apache/incubator-netbeans-website/blob/master/netbeans.apache.org/src/content/kb/docs/java/javase-intro.asciidoc"
title="Edit this tutorial in github">edit it in GitHub </a>
- following these <a
href="/kb/docs/contributing.html">contribution guidelines.</a></td>
- </tr></tbody>
- </table>
+ <div class="paragraph">
+ <p class='reviewed'><i class="fa fa-check-circle"></i> Last
reviewed on 2019-02-24</p>
</div>
</div>
@@ -141,13 +133,13 @@
<div id="preamble">
<div class="sectionbody">
<div class="paragraph">
-<p>The following short tutorial takes you through some of the basic steps of
developing a Java SE application in NetBeans IDE. This tutorial assumes you
already have some familiarity with developing Java applications. Along the way,
you will see some of the IDE features that simplify application development.</p>
+<p>The following short tutorial takes you through some of the basic steps of
developing a Java SE application in the NetBeans IDE. This tutorial assumes
you already have some familiarity with developing Java applications. Along the
way, you will see some of the IDE’s features that simplify application
development.</p>
</div>
<div class="paragraph">
<p>You will create an application that converts several words into a single
word that contains one letter from each of the other words. The resulting word
is called an <em>acrostic</em>.</p>
</div>
<div class="paragraph">
-<p>This tutorial takes approximately 30 minutes to complete. If you would like
to do a quicker "Hello World" tutorial, see the <a
href="quickstart.html">NetBeans IDE Java Quick Start Tutorial</a>.</p>
+<p>This tutorial takes approximately 30 minutes to complete. If you would like
to do a quicker <strong>Hello World</strong> tutorial, see the <a
href="quickstart.html">NetBeans IDE Java Quick Start Tutorial</a>.</p>
</div>
</div>
</div>
@@ -160,15 +152,15 @@
<div class="ulist">
<ul>
<li>
-<p>A Java Class Library project in which you will create a utility class.</p>
+<p>A Java Class Library project, <strong>MyLib</strong>, in which you will
create a utility class.</p>
</li>
<li>
-<p>A Java Application project with a main class that implements a method from
the library project’s utility class.</p>
+<p>A Java Application project, <strong>MyApp</strong>, with a main class that
implements a method from the library project’s utility class.</p>
</li>
</ul>
</div>
<div class="paragraph">
-<p>After you create the projects, you will add the library project to the
classpath of the application project. Then you will code the application. The
library project will contain a utility class with an <code>acrostic</code>
method. The <code>acrostic</code> method takes an array of words as a parameter
and then generates an acrostic based on those words. The MyApp project will
contain a main class that calls the <code>acrostic</code> method and passes the
words that are entered as arg [...]
+<p>After you create the projects, you will add the library project,
<strong>MyLib</strong>, to the classpath of the application project,
<strong>MyApp</strong>. Then you will code the application. The library project
will contain a utility class with a method named <code>acrostic</code> . The
method <code>acrostic</code> takes an array of words as a parameter and then
generates an acrostic based on those words. The <strong>MyApp</strong> project
will contain a class <strong>Main</strong> [...]
</div>
<div class="admonitionblock note">
<table>
@@ -184,96 +176,83 @@ Strictly speaking, two projects are not needed for such a
simple application. Th
</div>
<div class="sect2">
<h3 id="_creating_a_java_class_library_project">Creating a Java Class Library
Project</h3>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Choose File > New Project (Ctrl-Shift-N). Under Categories, select Java.
Under Projects, select Java Class Library. Click Next.</p>
-</li>
-<li>
-<p>Under Project Name, type <code>MyLib</code>. Change the Project Location to
any directory on your computer. From now on, this tutorial refers to this
directory as <code><em>NetBeansProjects</em></code>.</p>
-</li>
-</ol>
+<div class="paragraph">
+<p>To open a new Java project, press:</p>
</div>
-<div class="admonitionblock note">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="icon">
-<i class="fa icon-note" title="Note"></i>
-</td>
-<td class="content">
-The path specified above should appear as follows in the Project Folder field
of the wizard: <code> /<code><em>NetBeansProjects</em></code>/MyLib/ </code>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/Linux</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Shift-N</code></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Command-Shift-N</code></p></td>
</tr>
+</tbody>
</table>
+<div class="paragraph">
+<p>or, select <strong>File > New Project…​</strong> from the
menu bar. Then <strong>Choose Project</strong> by selecting <strong>Categories:
Java</strong> and <strong>Projects: Java Class Library</strong>, then click
<strong>Next ></strong>.</p>
</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>(Optional) Select the Use Dedicated Folder for Storing Libraries checkbox
and specify the location for the libraries folder. See <a
href="http://www.oracle.com/pls/topic/lookup?ctx=nb8000&id=NBDAG455">Sharing
a Library with Other Users</a> in <em>Developing Applications with NetBeans
IDE</em> for more information on this option.</p>
-</li>
-<li>
-<p>Click Finish. The MyLib project opens in both the Projects window and the
Files window.</p>
-</li>
-</ol>
+<div class="paragraph">
+<p>For <strong>Name and Location</strong>, set <strong>Project Name:
MyLib</strong>. Change <strong>Project Location:</strong> to any directory on
your computer. From now on, this tutorial refers to this directory as
<code><em>NetBeansProjects</em></code>.</p>
+</div>
+<div class="paragraph">
+<p>The specified path is then shown as <strong>Project Folder: <code>
/<code><em>NetBeansProjects</em></code>/MyLib </code></strong></p>
+</div>
+<div class="paragraph">
+<p>Optionally, select <strong>Use Dedicated Folder for Storing
Libraries</strong> checkbox and specify the location for the <strong>libraries
Folder:</strong>. See <a
href="http://www.oracle.com/pls/topic/lookup?ctx=nb8000&id=NBDAG455">Sharing
a Library with Other Users</a> in <em>Developing Applications with NetBeans
IDE</em> for more information on this option.</p>
+</div>
+<div class="paragraph">
+<p>Finally, click <strong>Finish</strong>. The MyLib project will be created
and opens in the <strong>Projects</strong> window.</p>
</div>
</div>
<div class="sect2">
<h3 id="_creating_a_java_application_project">Creating a Java Application
Project</h3>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Choose File > New Project. Under Categories, select Java. Under
Projects, select Java Application. Click Next.</p>
-</li>
-<li>
-<p>Under Project Name, type <code>MyApp</code>. Make sure the Project Location
is set to <code><em>NetBeansProjects</em></code>.</p>
-</li>
-<li>
-<p>(Optional) Check the Use Dedicated Folder for Storing Libraries
checkbox.</p>
-</li>
-<li>
-<p>Enter <code>acrostic.Main</code> as the main class.</p>
-</li>
-<li>
-<p>Ensure that the Create Main Class checkbox is checked.</p>
-</li>
-<li>
-<p>Click Finish. The MyApp project is displayed in the Project window and
<code>Main.java</code> opens in the Source Editor.</p>
-</li>
-</ol>
+<div class="paragraph">
+<p>Open a new Java Project, as shown above. Then <strong>Choose
Project</strong> by selecting <strong>Categories: Java</strong> and
<strong>Projects: Java Application</strong>, then click <strong>Next
></strong>.</p>
+</div>
+<div class="paragraph">
+<p>for <strong>Name and Location</strong>, set <strong>Project Name:
MyApp</strong>. Make sure the Project Location is set to
<code><em>NetBeansProjects</em></code>.</p>
+</div>
+<div class="paragraph">
+<p>Optionally, select the <strong>Use Dedicated Folder for Storing
Libraries</strong> checkbox.</p>
+</div>
+<div class="paragraph">
+<p>Ensure that the <strong>Create Main Class</strong> checkbox is selected
and, enter <strong>acrostic.Main</strong> as the main class.</p>
+</div>
+<div class="paragraph">
+<p>Finally, click <strong>Finish</strong>. The MyApp project is displayed in
the <strong>Projects</strong> window and <strong>Main.java</strong> opens in
the source editor.</p>
</div>
</div>
<div class="sect2">
<h3 id="_configuring_the_compilation_classpath">Configuring the Compilation
Classpath</h3>
<div class="paragraph">
-<p>Since MyApp is going to depend on a class in MyLib, you have to add MyLib
to the classpath of MyApp. Doing so also ensures that classes in the MyApp
project can refer to classes in the MyLib project without causing compilation
errors. In addition, this enables you to use code completion in the MyApp
project to fill in code based on the MyLib project. In the IDE, the classpath
is visually represented by the Libraries node.</p>
+<p>Since class <strong>MyApp</strong> is going to depend on class
<strong>MyLib</strong>, you have to add <strong>MyLib</strong> to the classpath
of <strong>MyApp</strong>. Doing so also ensures that classes in the
<strong>MyApp Project</strong> can refer to classes in the <strong>MyLib
Project</strong> without causing compilation errors. In addition, this enables
you to use code completion in the <strong>MyApp Project</strong> to fill in
code based on the <strong>MyLib Project</strong>. [...]
</div>
<div class="paragraph">
<p><strong>To add the library’s utility classes to the project
classpath:</strong></p>
</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>In the Projects window, right-click the Libraries node for the MyApp
project and choose Add Project as shown in the image below.</p>
-</li>
-</ol>
+<div class="paragraph">
+<p>In the <strong>Projects</strong> window, right-click the
<strong>Libraries</strong> node for the <strong>MyApp</strong> project and
choose <strong>Add Project…​</strong> as shown in the image
below.</p>
</div>
<div class="imageblock">
<div class="content">
<img src="images/addproj.png" alt="addproj">
</div>
</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Browse to <code><em>NetBeansProjects</em>/</code> and select the
<code>MyLib</code> project folder. The Project JAR Files pane shows the JAR
files that can be added to the project. Notice that a JAR file for MyLib is
listed even though you have not actually built the JAR file yet. This JAR file
will get built when you build and run the MyApp project.</p>
-</li>
-<li>
-<p>Click Add Project JAR Files.</p>
-</li>
-<li>
-<p>Expand the Libraries node. The MyLib project’s JAR file is added to
the MyApp project’s classpath.</p>
-</li>
-</ol>
+<div class="paragraph">
+<p>If necessary, in the <strong>Add Project</strong> window browse to
<code><em>NetBeansProjects</em></code> and, select the <strong>MyLib</strong>
project folder. When you do so, you will see <strong>Project Name:
MyLib</strong> and, <strong>Project JAR Files: dist/MyLib.jar</strong> can be
added to the project.</p>
+</div>
+<div class="paragraph">
+<p>Notice that a JAR file is shown for <strong>MyLib</strong> even though you
have not actually built one yet. This JAR file will get built when you build
and run the <strong>MyApp</strong> project.</p>
+</div>
+<div class="paragraph">
+<p>Select <strong>Add Project JAR Files</strong> then expand the
<strong>Libraries</strong> node of <strong>MyApp</strong> in the
<strong>Projects</strong> window and, you will see that <strong>MyLib</strong>
project’s JAR file has been added to the <strong>MyApp</strong>
project’s classpath.</p>
</div>
</div>
</div>
@@ -282,22 +261,40 @@ The path specified above should appear as follows in the
Project Folder field of
<h2 id="_creating_and_editing_java_source_code">Creating and Editing Java
Source Code</h2>
<div class="sectionbody">
<div class="paragraph">
-<p>Now you need to create a Java package and add the method that you will use
to construct the acrostic. After that you need to implement the
<code>acrostic</code> method in the <code>Main</code> class.</p>
+<p>Now you need to create a Java package and, add the method that will
construct the acrostic. After that you need to implement the method
<code>acrostic</code> in class <code>Main</code>.</p>
</div>
<div class="sect2">
<h3 id="_creating_a_java_package_and_class_file">Creating a Java Package and
Class File</h3>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Right-click the MyLib project node and choose New > Java Class. Type
<code>LibClass</code> as the name for the new class, type
<code>org.me.mylib</code> in the Package field, and click Finish.
<code>LibClass.java</code> opens in the Source Editor.</p>
-</li>
-<li>
-<p>In <code>LibClass.java</code>, place the cursor on the line after the class
declaration (<code>public class LibClass {</code>.</p>
-</li>
-<li>
+<div class="paragraph">
+<p>In the <strong>Projects</strong> window, right-click the
<strong>MyLib</strong> project node and select <strong>New > Java
Class…​</strong> . Alternatively, regardless of where you are in
the project, press:</p>
+</div>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
+<tr>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows™</strong>/Linux</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-N</code></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Command-N</code></p></td>
+</tr>
+</tbody>
+</table>
+<div class="paragraph">
+<p>or, select <strong>File > New File…​</strong> from the menu
bar. Then in the <strong>New File</strong> window select: <strong>Project:
MyLib</strong>, <strong>Categories: Java</strong> and <strong>File Types: Java
Class</strong> then click <strong>Next</strong>.</p>
+</div>
+<div class="paragraph">
+<p>In the <strong>New Java Class</strong> window, type: <strong>Class Name:
LibClass</strong> and <strong>Package: org.me.mylib</strong>. Click
<strong>Finish</strong> and <strong>LibClass.java</strong> opens in the source
editor.</p>
+</div>
+<div class="paragraph">
+<p>In <code>LibClass.java</code>, place the cursor on the line after the class
declaration <code>public class LibClass {</code>.</p>
+</div>
+<div class="paragraph">
<p>Type or paste in the following method code:</p>
-</li>
-</ol>
</div>
<div class="listingblock">
<div class="content">
@@ -314,34 +311,58 @@ The path specified above should appear as follows in the
Project Folder field of
}</code></pre>
</div>
</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>If the code that you pasted in is not formatted correctly, press
Alt-Shift-F to reformat the entire file.</p>
-</li>
-<li>
-<p>Press Ctrl-S to save the file.</p>
-</li>
-</ol>
+<div class="paragraph">
+<p>If the code that you pasted in is not formatted correctly, press:</p>
+</div>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
+<tr>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows™</strong>/Linux</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Alt-Shift-F</code></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Shift-F</code></p></td>
+</tr>
+</tbody>
+</table>
+<div class="paragraph">
+<p>or, <strong>Source > Format</strong> from the menu bar or, right-click
<strong>Format</strong> to reformat the entire file. Then save your file:</p>
+</div>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
+<tr>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows™</strong>/Linux</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-S</code></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Command-S</code></p></td>
+</tr>
+</tbody>
+</table>
+<div class="paragraph">
+<p>or, select <strong>File > Save</strong> from the menu bar.</p>
</div>
</div>
<div class="sect2">
<h3 id="_editing_a_java_file">Editing a Java File</h3>
<div class="paragraph">
-<p>Now you will add some code to <code>Main.java</code>. In doing so, you will
see the Source Editor’s code completion and code template (abbreviation)
features.</p>
+<p>Now you will add some code to class <code>Main.java</code>. In doing so,
you will see the source editor’s code completion and, code template
features.</p>
</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Select the <code>Main.java</code> tab in the Source Editor. If it
isn’t already open, expand MyApp > Source Packages > acrostic in
the Projects window and double-click <code>Main.java</code>.</p>
-</li>
-<li>
-<p>Delete the <code>// TODO code application logic here</code> comment in the
<code>main</code> method.</p>
-</li>
-<li>
-<p>In place of the comment type the following:</p>
-</li>
-</ol>
+<div class="paragraph">
+<p>Select the <code>Main.java</code> tab in the source editor. If it
isn’t already open, select the <strong>Projects</strong> window and
expand <strong>MyApp > Source Packages > acrostic</strong> and either:
double-click <code>Main.java</code> or, right-click and select
<strong>Open</strong>.</p>
+</div>
+<div class="paragraph">
+<p>In the method <code>main</code>, delete the comment: <code>// TODO code
application logic here</code> and, in its place type the following:</p>
</div>
<div class="listingblock">
<div class="content">
@@ -349,34 +370,7 @@ The path specified above should appear as follows in the
Project Folder field of
</div>
</div>
<div class="paragraph">
-<p>Leave the cursor immediately after <code>Li</code>. In the next step you
will use code completion to turn <code>Li</code> into <code>LibClass</code>.</p>
-</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Press Ctrl-Space to open the code completion box.</p>
-</li>
-</ol>
-</div>
-<div class="paragraph">
-<p>A short list of possible ways to complete the word appears. However, the
class that you want, <code>LibClass</code> might not be there.</p>
-</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Press Ctrl-Space again to display a longer list of possible matches.</p>
-</li>
-</ol>
-</div>
-<div class="paragraph">
-<p><code>LibClass</code> should be in this list.</p>
-</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Select <code>LibClass</code> and press Enter. The IDE fills in the rest of
the class name and also automatically creates an import statement for the
class.</p>
-</li>
-</ol>
+<p>At this point stop typing but leave the cursor immediately after
<code>Li</code>. Invoke code completion by pressing <code>Ctrl-Space</code>, a
short list of options appears. However, the class that you want,
<code>LibClass</code> might not be there. If you press <code>Ctrl-Space</code>
again a longer code completion list appears containing <code>LibClass</code>,
select <code>LibClass</code> and press <strong>Enter</strong>. The IDE fills in
the rest of the class name and also automat [...]
</div>
<div class="admonitionblock note">
<table>
@@ -390,51 +384,24 @@ The IDE also opens a box above the code completion box
that displays Javadoc inf
</tr>
</table>
</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>In the main method, type a period (.) after <code>LibClass</code>. The code
completion box opens again.</p>
-</li>
-<li>
-<p>Select the <code>acrostic(String[]args)</code> method and press Enter. The
IDE fills in the <code>acrostic</code> method and the highlights the
<code>args</code> parameter.</p>
-</li>
-<li>
-<p>Press Enter to accept <code>args</code> as the parameter.</p>
-</li>
-<li>
-<p>Type a semicolon (;).</p>
-</li>
-</ol>
-</div>
<div class="paragraph">
-<p>The final line should look like the following line.</p>
+<p>In the main method, type a period ( <code>.</code> ) after
<code>LibClass</code>, the code completion box opens again. Select the
<code>acrostic(String[]args)</code> method and press <strong>Enter</strong>.
The IDE fills in the <code>acrostic</code> method and highlights the
<code>args</code> parameter, press <strong>Enter</strong> again to accept
<code>args</code> as the parameter, end the line with a semicolon (
<code>;</code> ). The line should look, as follows:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code class="language-java"
data-lang="java">String result = LibClass.acrostic(args);</code></pre>
</div>
</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Press Enter to start a new line. Then type <code>sout</code> and press Tab.
The <code>sout</code> abbreviation expands to <code>System.out.println("");
`with the cursor positioned between the quotation marks. Type `Result =</code>
inside the quotation marks and <code>+ result</code> after the end quotation
mark.</p>
-</li>
-</ol>
-</div>
<div class="paragraph">
-<p>The final line should look like the following line.</p>
+<p>Press <strong>Enter</strong> to start a new line. Then type
<code>sout</code> and press <strong>Tab</strong>. The <code>sout</code>
abbreviation expands to <code>System.out.println("");</code> with the cursor
positioned between the quotation marks. Type <code>Result =</code> inside the
quotation marks and <code>+ result</code> after the end quotation mark. The
final line should look like the following line.</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code class="language-java"
data-lang="java">System.out.println("Result = " + result);</code></pre>
</div>
</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Press Ctrl-S to save the file.</p>
-</li>
-</ol>
+<div class="paragraph">
+<p>Save the file.</p>
</div>
<div class="admonitionblock note">
<table>
@@ -443,7 +410,7 @@ The IDE also opens a box above the code completion box that
displays Javadoc inf
<i class="fa icon-note" title="Note"></i>
</td>
<td class="content">
-<code>sout</code> is one of many code templates that are available in the
Source Editor. To find and edit the list of code templates, choose Tools >
Options > Editor > Code Template.
+<code>sout</code> is one of many code templates that are available in the
Source Editor. To find out how to edit using code templates see, See <a
href="http://www.oracle.com/pls/topic/lookup?ctx=nb8000&id=NBDAG455">Sharing
a Library with Other Users</a> in <em>Developing Applications with NetBeans
IDE</em> for more information on this option.choose Tools > Options >
Editor > Code Template.
</td>
</tr>
</table>
@@ -477,22 +444,8 @@ By default, the projects have been created with the
Compile on Save feature enab
<div class="paragraph">
<p><strong>To add the arguments for the IDE to use when running the
application:</strong></p>
</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Right-click the MyApp project node, choose Properties, and select the Run
node in the dialog’s left pane.</p>
-</li>
-</ol>
-</div>
<div class="paragraph">
-<p>The main class should already be set to <code>acrostic.Main</code>.</p>
-</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Type `However we all feel zealous `in the Arguments field and click OK.</p>
-</li>
-</ol>
+<p>From the <strong>Projects</strong> window, right-click the
<strong>MyApp</strong> project node and select <strong>Properties</strong>. The
<strong>Project Properties</strong> window opens, select the
<strong>Categories: Run</strong> node in the dialog’s left-hand pane. In
the right-hand pane set <strong>Arguments: However we all feel zealous</strong>
and select <strong>OK</strong>.</p>
</div>
</div>
<div class="sect2">
@@ -503,18 +456,14 @@ By default, the projects have been created with the
Compile on Save feature enab
<div class="paragraph">
<p><strong>To run the application in the IDE:</strong></p>
</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Right-click the MyApp project node and choose Clean and Build.</p>
-</li>
-<li>
-<p>Choose Run > Run Project (F6).</p>
-</li>
-</ol>
+<div class="paragraph">
+<p>First, press <code>F11</code> to clean and build your project or, in the
<strong>Projects</strong> window right-click the <strong>MyApp</strong> project
node and choose <strong>Clean and Build</strong> or, select <strong>Run >
Clean and Build Project (MyApp)</strong> from the menu bar.</p>
+</div>
+<div class="paragraph">
+<p>Then, you can press <code>F6</code> or, in the <strong>Projects</strong>
window right-click the <strong>MyApp</strong> project node and choose
<strong>Run</strong> or, select <strong>Run > Run Project (MyApp)</strong>
from the menu bar .</p>
</div>
<div class="paragraph">
-<p>In the Output window, you should see the output from the program, `Result =
Hello ` (the acrostic of the phrase that was passed to the program as an
argument).</p>
+<p>In the <strong>Output</strong> window, you should see the output from the
program, <code>Result = Hello</code>, the acrostic of the phrase that was
passed as an argument to the program.</p>
</div>
</div>
</div>
@@ -527,32 +476,39 @@ By default, the projects have been created with the
Compile on Save feature enab
</div>
<div class="sect2">
<h3 id="_creating_junit_tests">Creating JUnit Tests</h3>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Right-click the <code>LibClass.java</code> node in the Projects window and
choose Tools >Create/Update Tests (Ctrl-Shift-U).</p>
-</li>
-<li>
-<p>In the Create Tests dialog box, click OK to run the command with the
default options.</p>
-</li>
-</ol>
+<div class="paragraph">
+<p>To create a JUnit test, from the <strong>Projects</strong> window select
the <code>LibClass.java</code> node and press:</p>
</div>
-<div class="admonitionblock note">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="icon">
-<i class="fa icon-note" title="Note"></i>
-</td>
-<td class="content">
-If this is the first time you have created JUnit tests in the IDE, you will be
prompted with the Select JUnit Version dialog box. Press Enter to select JUnit
4.x and continue to the Create Tests dialog box.
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows™</strong>/Linux</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Shift-U</code></p></td>
</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Command-Shift-U</code></p></td>
+</tr>
+</tbody>
</table>
+<div class="paragraph">
+<p>or, select <strong>Tools > Create/Update Tests</strong> from the menu
bar or, in the <strong>Projects</strong> window, right-click the
<code>LibClass.java</code> node and and select <strong>Tools > Create/Update
Tests</strong>.</p>
+</div>
+<div class="paragraph">
+<p>In the <strong>Create/Update Tests</strong> dialog box, click
<strong>OK</strong> to run the command with the default options.</p>
+</div>
+<div class="paragraph">
+<p>In the <strong>Projects</strong> window you will see that the IDE has
created the <code>org.me.mylib</code> package, the
<code>LibClassTest.java</code> file in the <strong>MyLib > Test
Packages</strong> folder and, created the <strong>MyLib > Test
Libraries</strong> folder. Finally the file <code>LibClassTest.java</code> is
opened in the editor.</p>
</div>
<div class="paragraph">
-<p>The IDE creates the <code>org.me.mylib</code> package and the
<code>LibClassTest.java</code> file in a separate <code>test</code> folder. You
can find this file by expanding the Test Packages node and the
<code>org.me.mylib</code> subnode.
-3. In <code>LibClassTest.java</code>, delete the body of the <code>public void
testAcrostic()</code> method.
-4. In place of the deleted lines, type or paste in the following:</p>
+<p>In the <strong>Projects</strong> window, right-click the <strong>Test
Libraries</strong> node and select <strong>Properties</strong>. In the
<strong>Project Properties - MyLib</strong> window, select <strong>Categories:
Libraries</strong>. In the right-hand pane select the <strong>Compile
Tests</strong> tab and click the ` <strong>+</strong> ` button. From the pop-up
list select <strong>Add Library</strong>, from the <strong>Global
Libraries</strong> folder select <code>JUnit 4.x</co [...]
+</div>
+<div class="paragraph">
+<p>In <code>LibClassTest.java</code>, delete the body of the <code>public void
testAcrostic()</code> method and, in place of the deleted lines, type or paste
in the following:</p>
</div>
<div class="listingblock">
<div class="content">
@@ -561,40 +517,42 @@ String result = LibClass.acrostic(new String[]{"fnord",
"polly", "tropism"});
assertEquals("Correct value", "foo", result);</code></pre>
</div>
</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Save the file by pressing Ctrl-S.</p>
-</li>
-</ol>
+<div class="paragraph">
+<p>Then <strong>Save</strong> the file.</p>
</div>
</div>
<div class="sect2">
<h3 id="_running_junit_tests">Running JUnit Tests</h3>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Select the MyLib project node and choose Run > Test Project (MyLib) or
press Alt-F6. The` MyLib (test)` tab opens in the Output window. The JUnit test
cases are compiled and run. The JUnit test result shows that the test
passes.</p>
-</li>
-<li>
-<p>You can also run a single test file rather than testing the entire project.
Select the <code>LibClass.java</code> tab in the Source Editor and choose Run
> Test File.</p>
-</li>
-</ol>
-</div>
<div class="paragraph">
-<p>The JUnit API documentation is available from the IDE. Choose Help >
Javadoc References > JUnit API.</p>
+<p>In the <strong>Projects</strong> window, select the <strong>MyLib</strong>
project node and press:</p>
</div>
-<div class="admonitionblock note">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="icon">
-<i class="fa icon-note" title="Note"></i>
-</td>
-<td class="content">
-If this is the first time you access Javadoc in the IDE, you need to first
choose Help > Javadoc References > More Javadoc. Click Cancel in the
Javadoc References dialog box. Then choose Help > Javadoc References >
JUnit API.
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows™</strong>/Linux</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Alt-F6</code></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-F6</code></p></td>
</tr>
+</tbody>
</table>
+<div class="paragraph">
+<p>or, select <strong>Run > Test Project (MyLib)</strong> from the menu bar
or, right-click the <strong>MyLib</strong> project node and select
<strong>Test</strong>. A notification pops up telling you "Tests completed
successfully for project: MyLib", and then instructs you to open the
<strong>Test Results</strong> window, were you will receive confirmation of
success.</p>
+</div>
+<div class="paragraph">
+<p>You can also run a single test file rather than testing the entire project.
Right-click the <code>LibClass.java</code> node in the
<strong>Projects</strong> window and choose <strong>Run > Test
File</strong>. Alternatively, if <code>LibClassTest.java</code> is open in the
editor, select <strong>Run > Test File</strong> from the menu bar.</p>
+</div>
+<div class="paragraph">
+<p>The JUnit API documentation is available from the IDE. To look for Javadoc
references, select <strong>Help > Javadoc References</strong> from the menu
bar and select <code>JUnit</code>.</p>
+</div>
+<div class="paragraph">
+<p>If this is the first time you try to access Javadoc in the IDE, you need to
first choose <strong>Help > Javadoc References > More
Javadoc</strong>.</p>
</div>
<div class="paragraph">
<p>You can learn more about JUnit by visiting <a
href="http://www.junit.org">http://www.junit.org</a></p>
@@ -608,21 +566,55 @@ If this is the first time you access Javadoc in the IDE,
you need to first choos
<div class="paragraph">
<p><strong>To run the application in the debugger:</strong></p>
</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>In the <code>LibClass.java</code> file, go to the <code>acrostic</code>
method and place the insertion point anywhere inside
<code>b.append(args[i].charAt(i));</code>. Then press Ctrl-F8 to set a
breakpoint.</p>
-</li>
-<li>
-<p>Select the MyApp project node and choose Debug > Debug Project
(Ctrl-F5). The IDE opens the Debugger windows and runs the project in the
debugger until the breakpoint is reached.</p>
-</li>
-<li>
-<p>Select the Local Variables window in the bottom of the IDE and expand the
<code>args</code> node. The array of strings contains the phrase you entered as
the command arguments.</p>
-</li>
-<li>
-<p>Press F7 (or choose Debug > Step Into) to step through the program and
watch the <code>b</code> variable change as the acrostic is constructed.</p>
-</li>
-</ol>
+<div class="paragraph">
+<p>In the <code>LibClass.java</code> file, go to the <code>acrostic</code>
method and place the insertion point anywhere inside
<code>b.append(args[i].charAt(i));</code>, then set a breakpoint by
pressing:</p>
+</div>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
+<tr>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows™</strong>/Linux</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-F8</code></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Command-F8</code></p></td>
+</tr>
+</tbody>
+</table>
+<div class="paragraph">
+<p>or, select <strong>Debug > Toggle Line Breakpoint</strong> from the menu
bar or, in the left hand margin right-click the specified line and select
<strong>Breakpoint > Toggle Line Breakpoint</strong>.</p>
+</div>
+<div class="paragraph">
+<p>Select the <strong>MyApp</strong> project node in the
<strong>Projects</strong> window and, press:</p>
+</div>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
+<tr>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/Linux</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-F5</code></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Shift-F5</code></p></td>
+</tr>
+</tbody>
+</table>
+<div class="paragraph">
+<p>or, select <strong>Debug > Debug Project (MyApp)</strong> from the menu
bar or, right-click and select <strong>Debug</strong>. The IDE opens the
<strong>Debugging</strong> window and runs the project in the debugger until
the breakpoint is reached.</p>
+</div>
+<div class="paragraph">
+<p>Select the <strong>Variables</strong> window in the bottom of the IDE and
expand the <code>args</code> node. The array of strings contains the phrase you
entered as the command arguments.</p>
+</div>
+<div class="paragraph">
+<p>Press <code>F7</code> or, select <strong>Debug > Step Into</strong> from
the menu bar to step through the program and watch the <code>b</code> variable
change as the acrostic is constructed.</p>
</div>
<div class="paragraph">
<p>When the program reaches the end, the debugger windows close.</p>
@@ -642,7 +634,7 @@ If this is the first time you access Javadoc in the IDE,
you need to first choos
<div class="sect2">
<h3 id="_building_the_application">Building the Application</h3>
<div class="paragraph">
-<p>The main build command in the IDE is the Clean and Build command. The Clean
and Build command deletes previously compiled classes and other build artifacts
and then rebuilds the entire project from scratch.</p>
+<p>The main build command in the IDE is the <strong>Clean and Build</strong>
command. The <strong>Clean and Build</strong> command deletes previously
compiled classes and other build artifacts and then rebuilds the entire project
from scratch.</p>
</div>
<div class="admonitionblock note">
<table>
@@ -657,17 +649,10 @@ There is also a Build command, which does not delete old
build artifacts, but th
</table>
</div>
<div class="paragraph">
-<p><strong>To build the application:</strong></p>
-</div>
-<div class="ulist">
-<ul>
-<li>
-<p>Choose Run > Clean and Build Project (Shift-F11).</p>
-</li>
-</ul>
+<p>To build the application, press <code>Shift-F11</code> or, if
<code>Main.java</code> is open in the editor, select <strong>Run > Clean and
Build Project (MyApp)</strong> from the menu bar or, in the
<strong>projects</strong> window right-click on the <strong>MyApp</strong> node
and select <strong>Clean and Build</strong>.</p>
</div>
<div class="paragraph">
-<p>Output from the Ant build script appears in the Output window. If the
Output window does not appear, you can open it manually by choosing Window >
Output > Output.</p>
+<p>Output from the Ant build script appears in the <strong>Output</strong>
window, If the window does not appear automatically, open it manually by
choosing <strong>Window > Output</strong> from the menu bar.</p>
</div>
<div class="paragraph">
<p>When you clean and build your project, the following things occur:</p>
@@ -675,10 +660,10 @@ There is also a Build command, which does not delete old
build artifacts, but th
<div class="ulist">
<ul>
<li>
-<p>Output folders that have been generated by previous build actions are
deleted ("cleaned"). (In most cases, these are the <code>build</code> and
<code>dist</code> folders.)</p>
+<p>Output folders that have been generated by previous build actions are
deleted, " <strong>cleaned</strong> ". In most cases, these are the
<code>build</code> and <code>dist</code> folders.</p>
</li>
<li>
-<p><code>build</code> and <code>dist</code> folders are added to your project
folder (hereafter referred to as the <em>PROJECT_HOME</em> folder). You can
view these folders in the Files window.</p>
+<p><code>build</code> and <code>dist</code> folders are added to your project
folder, hereafter referred to as the <em>PROJECT_HOME</em> folder. You can view
these folders in the Files window.</p>
</li>
<li>
<p>All of the sources are compiled into <code>.class</code> files, which are
placed into the <code><em>PROJECT_HOME</em>/build</code> folder.</p>
@@ -687,7 +672,7 @@ There is also a Build command, which does not delete old
build artifacts, but th
<p>A JAR file containing your project is created inside the
<code><em>PROJECT_HOME</em>/dist</code> folder.</p>
</li>
<li>
-<p>If you have specified any libraries for the project (in addition to the
JDK), a <code>lib</code> folder is created in the <code>dist</code> folder. The
libraries are copied into <code>dist/lib</code>.</p>
+<p>If you have specified any libraries for the project, in addition to the
JDK, a <code>lib</code> folder is created in the <code>dist</code> folder. The
libraries are copied into <code>dist/lib</code>.</p>
</li>
<li>
<p>The manifest file in the JAR is updated to include entries that designate
the main class and any libraries that are on the project’s classpath.</p>
@@ -701,19 +686,13 @@ There is also a Build command, which does not delete old
build artifacts, but th
<i class="fa icon-note" title="Note"></i>
</td>
<td class="content">
-You can view the contents of the manifest in the IDE’s Files window.
After you have built your project, switch to the Files window and navigate to
<code>dist/MyApp.jar</code>. Expand the node for the JAR file, expand the
<code>META-INF</code> folder, and double-click <code>MANIFEST.MF</code> to
display the manifest in the Source Editor.
+You can view the contents of the manifest in the IDE’s
<strong>Files</strong> window. After you have built your project, switch to the
Files window and navigate to <code>dist/MyApp.jar</code>. Expand the node for
the JAR file, expand the <code>META-INF</code> folder, and double-click
<code>MANIFEST.MF</code> to display the manifest in the Source Editor.
</td>
</tr>
</table>
</div>
-<div class="listingblock">
-<div class="content">
-<pre class="prettyprint highlight"><code class="language-java"
data-lang="java">Main-Class: acrostic.Main
- Class-Path: lib/MyLib.jar</code></pre>
-</div>
-</div>
<div class="paragraph">
-<p>(To find more about manifest files, you can read <a
href="http://java.sun.com/docs/books/tutorial/deployment/jar/manifestindex.html">this
chapter</a> from the Java Tutorial.)</p>
+<p>To find more about manifest files, you can read <a
href="http://java.sun.com/docs/books/tutorial/deployment/jar/manifestindex.html">this
chapter</a> from the Java Tutorial.</p>
</div>
</div>
<div class="sect2">
@@ -721,18 +700,14 @@ You can view the contents of the manifest in the
IDE’s Files window. After
<div class="paragraph">
<p><strong>To run the application outside of the IDE:</strong></p>
</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
+<div class="paragraph">
<p>On your system, open up a command prompt or terminal window.</p>
-</li>
-<li>
+</div>
+<div class="paragraph">
<p>In the command prompt, change directories to the <code>MyApp/dist</code>
directory.</p>
-</li>
-<li>
+</div>
+<div class="paragraph">
<p>At the command line, type the following statement:</p>
-</li>
-</ol>
</div>
<div class="listingblock">
<div class="content">
@@ -747,15 +722,6 @@ You can view the contents of the manifest in the
IDE’s Files window. After
<pre class="prettyprint highlight"><code class="language-java"
data-lang="java">Result = Hello</code></pre>
</div>
</div>
-<div class="openblock feature">
-<div class="content">
-<div class="imageblock left">
-<div class="content">
-<a class="image" href="images/command-prompt.png"><img
src="images/command-prompt-smaller.png" alt="command prompt smaller"></a>
-</div>
-</div>
-</div>
-</div>
</div>
<div class="sect2">
<h3 id="_distributing_the_application_to_other_users">Distributing the
Application to Other Users</h3>
@@ -765,18 +731,14 @@ You can view the contents of the manifest in the
IDE’s Files window. After
<div class="paragraph">
<p><strong>To distribute the application:</strong></p>
</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
+<div class="paragraph">
<p>On your system, create a zip file that contains the application JAR file
(<code>MyApp.jar</code>) and the accompanying <code>lib</code> folder that
contains <code>MyLib.jar</code>.</p>
-</li>
-<li>
+</div>
+<div class="paragraph">
<p>Send the file to the people who will use the application. Instruct them to
unpack the zip file, making sure that the <code>MyApp.jar</code> file and the
<code>lib</code> folder are in the same folder.</p>
-</li>
-<li>
+</div>
+<div class="paragraph">
<p>Instruct the users to follow the steps in the <a
href="#running-outside-IDE">Running the Application Outside of the IDE</a>
section above.</p>
-</li>
-</ol>
</div>
</div>
</div>
@@ -790,32 +752,22 @@ You can view the contents of the manifest in the
IDE’s Files window. After
<div class="sect2">
<h3 id="_making_the_javadoc_available_in_the_ide">Making the Javadoc Available
in the IDE</h3>
<div class="paragraph">
-<p>To view the JavaSE API documentation in the NetBeans IDE, use the Source
> Show Documentation command or choose Window > IDE Tools > Javadoc
Documentation from the main menu to view API documentation in a separate
window.</p>
+<p>To view the Java SE API documentation in the NetBeans IDE, select either:
<strong>Source > Show Documentation</strong> or, <strong>Window > IDE
Tools > Javadoc Documentation</strong> from the menu bar.</p>
</div>
<div class="paragraph">
<p>However, for some third-party libraries, API documentation is not
available. In these cases, the Javadoc resources must be manually associated
with the IDE.</p>
</div>
<div class="paragraph">
-<p><strong>To make the Javadoc API documentation available for the Show
Javadoc command:</strong></p>
+<p>If you have not already installed the Javadoc for your JDK then go to:</p>
</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Download the Javadoc API documentation source (see the <a
href="http://wiki.netbeans.org/FaqJavaDoc#Adding_the_JDK_Javadoc_to_the_NetBeans_IDE">FaqJavaDoc</a>
page for additional details).</p>
-</li>
-<li>
-<p>Choose Tools > Java Platforms.</p>
-</li>
-<li>
-<p>Click the Javadoc tab.</p>
-</li>
-<li>
-<p>Click the Add ZIP/Folder button and navigate to the zip file or the folder
that contains the Javadoc API documentation on your system. Select the zip file
or the folder and click the Add ZIP/Folder button.</p>
-</li>
-<li>
-<p>Click Close.</p>
-</li>
-</ol>
+<div class="paragraph">
+<p><a
href="https://www.oracle.com/technetwork/java/javase/downloads/index.html"
class="bare">https://www.oracle.com/technetwork/java/javase/downloads/index.html</a></p>
+</div>
+<div class="paragraph">
+<p>and, download the file.</p>
+</div>
+<div class="paragraph">
+<p>To install, select <strong>Tools > Java Platforms</strong> from the menu
bar and, in the <strong>Java Platform Manager</strong> window select the
<strong>Javadoc</strong> tab and click <strong>Add
ZIP/Folder…​</strong>. Navigate to the download file, select and
then click the <strong>Add ZIP/Folder</strong> button, finally click
<strong>Close</strong>.</p>
</div>
</div>
<div class="sect2">
@@ -824,18 +776,13 @@ You can view the contents of the manifest in the
IDE’s Files window. After
<p>You can generate compiled Javadoc documentation for your project based on
Javadoc comments that you have added to your classes.</p>
</div>
<div class="paragraph">
-<p><strong>To generate Javadoc documentation for a project:</strong></p>
+<p>To generate Javadoc documentation for a project:</p>
</div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Select the MyLib project.</p>
-</li>
-<li>
-<p>Choose Run > Generate Javadoc for "MyLib" from the IDE’s main menu.
-The generated Javadoc is added to the <code>dist</code> folder of the project.
In addition, the IDE opens a web browser that displays the Javadoc.</p>
-</li>
-</ol>
+<div class="paragraph">
+<p>From the <strong>Projects</strong> window select the <strong>MyLib</strong>
project node then select <strong>Run > Generate Javadoc (MyLib)</strong>
from the menu bar.</p>
+</div>
+<div class="paragraph">
+<p>The generated Javadoc is added to the <code>dist</code> folder of the
project. In addition, the IDE opens a web browser that displays the Javadoc.</p>
</div>
</div>
</div>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists