You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by ge...@apache.org on 2019/02/28 07:34:46 UTC

[incubator-netbeans-website] branch master updated: Fixed tables, added keyboard graphics (#328)

This is an automated email from the ASF dual-hosted git repository.

geertjan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 2725d86  Fixed tables, added keyboard graphics (#328)
2725d86 is described below

commit 2725d86476f5ca2c8b7954982883d47d565d197e
Author: Brian Cowell <18...@users.noreply.github.com>
AuthorDate: Thu Feb 28 18:34:42 2019 +1100

    Fixed tables, added keyboard graphics (#328)
    
    Fixed tables from having a width of 75%, resulting in whitespace.
    Added :experimental: attribute so keyboard graphics can be used.
    Changed all keyboard key short cuts to be keyboard graphics.
---
 .../src/content/kb/docs/java/javase-intro.asciidoc | 55 +++++++++++-----------
 1 file changed, 28 insertions(+), 27 deletions(-)

diff --git a/netbeans.apache.org/src/content/kb/docs/java/javase-intro.asciidoc b/netbeans.apache.org/src/content/kb/docs/java/javase-intro.asciidoc
index b56a5ea..9ed9515 100644
--- a/netbeans.apache.org/src/content/kb/docs/java/javase-intro.asciidoc
+++ b/netbeans.apache.org/src/content/kb/docs/java/javase-intro.asciidoc
@@ -31,6 +31,7 @@
 :toc-title:
 :description: Developing General Java Applications - Apache NetBeans
 :keywords: Apache NetBeans, Tutorials, Developing General Java Applications
+:experimental:
 
 //================================================= The Title and Metadata (End)
 
@@ -63,10 +64,10 @@ NOTE: Strictly speaking, two projects are not needed for such a simple applicati
 
 To open a new Java project, press:
 
-[grid="none",frame="none",width="75%",cols="1,4"]
+[cols="1,4"]
 |===
-|*Windows*(TM)/Linux |`Ctrl-Shift-N`
-|*macOS*(TM) |`Command-Shift-N`
+|*Windows*(TM)/Linux |kbd:[Ctrl+Shift+N]
+|*macOS*(TM) |kbd:[Command+Shift+N]
 |===
 
 or, select *File > New Project...* from the menu bar. Then *Choose Project* by selecting *Categories: Java* and *Projects: Java Class Library*, then click *Next >*.
@@ -125,10 +126,10 @@ Now you need to create a Java package and, add the method that will construct th
 
 In the *Projects* window, right-click the *MyLib* project node and select *New > Java Class...* . Alternatively, regardless of where you are in the project, press:
 
-[grid="none",frame="none",width="75%",cols="1,4"]
+[cols="1,4"]
 |===
-|*Windows(TM)*/Linux |`Ctrl-N`
-|*macOS*(TM) |`Command-N`
+|*Windows(TM)*/Linux |kbd:[Ctrl+N]
+|*macOS*(TM) |kbd:[Command+N]
 |===
 
 or, select *File > New File...* from the menu bar. Then in the *New File* window select: *Project: MyLib*, *Categories: Java* and *File Types: Java Class* then click *Next*.
@@ -156,18 +157,18 @@ Type or paste in the following method code:
 ----
 If the code that you pasted in is not formatted correctly, press:
 
-[grid="none",frame="none",width="75%",cols="1,4"]
+[cols="1,4"]
 |===
-|*Windows(TM)*/Linux |`Alt-Shift-F`
-|*macOS*(TM) |`Ctrl-Shift-F`
+|*Windows(TM)*/Linux |kbd:[Alt+Shift+F]
+|*macOS*(TM) |kbd:[Ctrl+Shift+F]
 |===
 
 or, *Source > Format* from the menu bar or, right-click *Format* to reformat the entire file. Then save your file:
 
-[grid="none",frame="none",width="75%",cols="1,4"]
+[cols="1,4"]
 |===
-|*Windows(TM)*/Linux |`Ctrl-S`
-|*macOS*(TM) |`Command-S`
+|*Windows(TM)*/Linux |kbd:[Ctrl+S]
+|*macOS*(TM) |kbd:[Command+S]
 |===
 
 or, select *File > Save* from the menu bar.
@@ -188,7 +189,7 @@ In the method `main`, delete the comment: `// TODO code application logic here`
 String result = Li
 ----
 
-At this point stop typing but leave the cursor immediately after `Li`. Invoke code completion by pressing `Ctrl-Space`, a short list of options appears. However, the class that you want, `LibClass` might not be there. If you press `Ctrl-Space` again a longer code completion list appears containing `LibClass`, select `LibClass` and press *Enter*. The IDE fills in the rest of the class name and also automatically creates an import statement for the class.
+At this point stop typing but leave the cursor immediately after `Li`. Invoke code completion by pressing kbd:[Ctrl+Space], a short list of options appears. However, the class that you want, `LibClass` might not be there. If you press kbd:[Ctrl+Space] again a longer code completion list appears containing `LibClass`, select `LibClass` and press *Enter*. The IDE fills in the rest of the class name and also automatically creates an import statement for the class.
 
 NOTE: The IDE also opens a box above the code completion box that displays Javadoc information for the selected class or package. Since there is no Javadoc information for this package, the box displays a "Cannot find Javadoc" message.
 
@@ -261,10 +262,10 @@ Now you will create and run a test for the project using JUnit and then run the
 
 To create a JUnit test, from the *Projects* window select the `LibClass.java` node and press:
 
-[grid="none",frame="none",width="75%",cols="1,4"]
+[cols="1,4"]
 |===
-|*Windows(TM)*/Linux |`Ctrl-Shift-U`
-|*macOS*(TM) |`Command-Shift-U`
+|*Windows(TM)*/Linux |kbd:[Ctrl+Shift+U]
+|*macOS*(TM) |kbd:[Command+Shift+U]
 |===
 
 or, select *Tools > Create/Update Tests* from the menu bar or, in the *Projects* window, right-click the `LibClass.java` node and and select *Tools > Create/Update Tests*.
@@ -292,10 +293,10 @@ Then *Save* the file.
 
 In the *Projects* window, select the *MyLib* project node and press:
 
-[grid="none",frame="none",width="75%",cols="1,4"]
+[cols="1,4"]
 |===
-|*Windows(TM)*/Linux |`Alt-F6`
-|*macOS*(TM) |`Ctrl-F6`
+|*Windows(TM)*/Linux |kbd:[Alt+F6]
+|*macOS*(TM) |kbd:[Ctrl+F6]
 |===
 
 or, select *Run > Test Project (MyLib)* from the menu bar or, right-click the *MyLib* project node and select *Test*. A notification pops up telling you "Tests completed successfully for project: MyLib", and then instructs you to open the *Test Results* window, were you will receive confirmation of success.
@@ -318,27 +319,27 @@ In this section, you will use the debugger to step through the application and w
 
 In the `LibClass.java` file, go to the `acrostic` method and place the insertion point anywhere inside `b.append(args[i].charAt(i));`, then set a breakpoint by pressing:
 
-[grid="none",frame="none",width="75%",cols="1,4"]
+[cols="1,4"]
 |===
-|*Windows(TM)*/Linux |`Ctrl-F8`
-|*macOS*(TM) |`Command-F8`
+|*Windows(TM)*/Linux |kbd:[Ctrl+F8]
+|*macOS*(TM) |kbd:[Command+F8]
 |===
 
 or, select *Debug > Toggle Line Breakpoint* from the menu bar or, in the left hand margin right-click the specified line and select *Breakpoint > Toggle Line Breakpoint*.
 
 Select the *MyApp* project node in the *Projects* window and, press:
 
-[grid="none",frame="none",width="75%",cols="1,4"]
+[cols="1,4"]
 |===
-|*Windows*(TM)/Linux |`Ctrl-F5`
-|*macOS*(TM) |`Shift-F5`
+|*Windows*(TM)/Linux |kbd:[Ctrl+F5]
+|*macOS*(TM) |kbd:[Shift+F5]
 |===
 
 or, select *Debug > Debug Project (MyApp)* from the menu bar or, right-click and select *Debug*. The IDE opens the *Debugging* window and runs the project in the debugger until the breakpoint is reached.
 
 Select the *Variables* window in the bottom of the IDE and expand the `args` node. The array of strings contains the phrase you entered as the command arguments.
 
-Press `F7` or, select *Debug > Step Into* from the menu bar to step through the program and watch the `b` variable change as the acrostic is constructed.
+Press kbd:[F7] or, select *Debug > Step Into* from the menu bar to step through the program and watch the `b` variable change as the acrostic is constructed.
 
 When the program reaches the end, the debugger windows close.
 
@@ -360,7 +361,7 @@ The main build command in the IDE is the *Clean and Build* command. The *Clean a
 
 NOTE: There is also a Build command, which does not delete old build artifacts, but this command is disabled by default. See link:http://www.oracle.com/pls/topic/lookup?ctx=nb8000&id=NBDAG512[+About Building Java Projects+] in _Developing Applications with NetBeans IDE_ for more information.
 
-To build the application, press `Shift-F11` or, if `Main.java` is open in the editor, select *Run > Clean and Build Project (MyApp)* from the menu bar or, in the *projects* window right-click on the *MyApp* node and select *Clean and Build*.
+To build the application, press kbd:[Shift+F11] or, if `Main.java` is open in the editor, select *Run > Clean and Build Project (MyApp)* from the menu bar or, in the *projects* window right-click on the *MyApp* node and select *Clean and Build*.
 
 Output from the Ant build script appears in the *Output* window, If the window does not appear automatically, open it manually by choosing *Window > Output* from the menu bar.
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists