You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by mb...@apache.org on 2022/02/15 20:51:18 UTC

[netbeans-website] branch master updated: Update debug-visual.asciidoc

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

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


The following commit(s) were added to refs/heads/master by this push:
     new f2f63d2  Update debug-visual.asciidoc
     new e07434a  Merge pull request #588 from rquarry/master
f2f63d2 is described below

commit f2f63d2ce638aa198ae489f37ba49e4c3e9ecb82
Author: Ryan Quarry <rq...@yahoo.com>
AuthorDate: Tue Feb 15 14:30:22 2022 -0500

    Update debug-visual.asciidoc
---
 .../src/content/kb/docs/java/debug-visual.asciidoc | 43 +++++++++++++++-------
 1 file changed, 30 insertions(+), 13 deletions(-)

diff --git a/netbeans.apache.org/src/content/kb/docs/java/debug-visual.asciidoc b/netbeans.apache.org/src/content/kb/docs/java/debug-visual.asciidoc
index c1ce0ea..90eedf0 100644
--- a/netbeans.apache.org/src/content/kb/docs/java/debug-visual.asciidoc
+++ b/netbeans.apache.org/src/content/kb/docs/java/debug-visual.asciidoc
@@ -1,4 +1,4 @@
-// 
+//
 //     Licensed to the Apache Software Foundation (ASF) under one
 //     or more contributor license agreements.  See the NOTICE file
 //     distributed with this work for additional information
@@ -6,9 +6,9 @@
 //     to you under the Apache License, Version 2.0 (the
 //     "License"); you may not use this file except in compliance
 //     with the License.  You may obtain a copy of the License at
-// 
+//
 //       http://www.apache.org/licenses/LICENSE-2.0
-// 
+//
 //     Unless required by applicable law or agreed to in writing,
 //     software distributed under the License is distributed on an
 //     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -19,7 +19,7 @@
 
 = Using the Visual Debugger in NetBeans IDE
 :jbake-type: tutorial
-:jbake-tags: tutorials 
+:jbake-tags: tutorials
 :jbake-status: published
 :icons: font
 :syntax: true
@@ -28,22 +28,39 @@
 :toc-title:
 :description: Using the Visual Debugger in NetBeans IDE - Apache NetBeans
 :keywords: Apache NetBeans, Tutorials, Using the Visual Debugger in NetBeans IDE
+:experimental:
+
+This tutorial describes how to use the Visual Debugger to help you locate and debug the code for visual elements in your Java GUI applications. Specifically, you can use the Visual Debugger in Java Swing and JavaFX GUI applications.
+
+You will use the Visual Debugger to explore the Anagram Game sample project, which is a Java Swing application distributed with NetBeans. This document will demonstrate how to take a GUI snapshot of the application and then work with the snapshot to locate source code, add listeners to events, and view the event log of GUI components.
 
-This document describes how to use the Visual Debugger to help you locate and debug the code for visual elements in your Java GUI applications. Specifically, you can use the Visual Debugger in Java Swing and JavaFX GUI applications.
+== Creating the Anagram Game sample project
 
-In this document you will use the Visual Debugger to explore the Anagram Game sample project, which is a Java Swing application distributed with NetBeans. This document will demonstrate how to take a GUI snapshot of the application and then work with the snapshot to locate source code, add listeners to events, and view the event log of GUI components.
+To open a new Java project, press:
+
+[cols="1,4"]
+|===
+|*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: Samples*, *Categories: Java with Ant* and *Projects: Anagram Game*, then click *Next >*.
+
+For *Name and Location*, set *Project Name: MyAnagram*. Change *Project Location:* to any directory on your computer. From now on, this tutorial refers to this directory as `_NetBeansProjects_`.
 
 == Taking a GUI Snapshot
 
-In this tutorial you will use the Anagram Game sample application, a Java desktop application with a simple GUI that is available as a sample in the New Project wizard. After you create the project, you will start a debugging session and take a GUI snapshot of the application.
+To start a debugging session, press:
+
+[cols="1,4"]
+|===
+|*Windows*(TM)/Linux |kbd:[Ctrl+F5]
+|*macOS*(TM) |kbd:[Command+F5]
+|===
 
-1. Choose File > New Project from the main menu (Ctrl-Shift-N; ⌘-Shift-N on Mac) to open the New Project wizard.
-2. Select Anagram Game in the Samples > Java category. Click Next.
-3. Specify a location for the project. Click Finish. When you click Finish, the IDE creates the project and opens the project in the Projects window.
-4. Click the Debug button in the toolbar (Ctrl-F5; ⌘-F5 on Mac) to start the debugging session. Alternatively, right-click the project node in the Projects window and choose Debug. When you start the session, the IDE will launch the Anagram Game application and open the Debugging window.
-5. Choose Debug > Take GUI Snapshot from the main menu.
+or, click the Debug button in the toolbar to start the debugging session. Alternatively, right-click the project node in the Projects window and choose Debug. When you start the session, the IDE will launch the Anagram Game application and open the Debugging window.
 
-When you choose Take GUI Snapshot, the IDE will take a snapshot of the GUI and will open the snapshot in the main window, as shown below:
+Choose Debug > Take GUI Snapshot from the main menu.When you choose Take GUI Snapshot, the IDE will take a snapshot of the GUI and will open the snapshot in the main window, as shown below:
 
 [.feature]
 --

---------------------------------------------------------------------
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