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

skygo pushed a commit to branch ebarboni-patch-1
in repository https://gitbox.apache.org/repos/asf/netbeans-antora-tutorials.git

commit e2e53cb1bc3ec6435f9d32bc0ba170a476aa0246
Author: Eric Barboni <[email protected]>
AuthorDate: Mon Mar 4 15:13:20 2024 +0100

    demo from webarchive
    
    Recover zip from archive,
    fix java output
---
 .../pages/kb/docs/java/gui-automatic-i18n.adoc     | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/modules/ROOT/pages/kb/docs/java/gui-automatic-i18n.adoc 
b/modules/ROOT/pages/kb/docs/java/gui-automatic-i18n.adoc
index 8c4d8b5e..b60c58a8 100644
--- a/modules/ROOT/pages/kb/docs/java/gui-automatic-i18n.adoc
+++ b/modules/ROOT/pages/kb/docs/java/gui-automatic-i18n.adoc
@@ -50,7 +50,7 @@ In this exercise we will open the demo Java application 
project, which contains
 
 === Opening the Example Project
 
-1. Download and unzip the 
link:https://netbeans.org/files/documents/4/770/InternationalizeDemo.zip[+InternationalizeDemo.zip+]
 project to any location on your computer.
+1. Download and unzip the 
link:https://web.archive.org/web/20210118114542/https://netbeans.org/project_downloads/www/InternationalizeDemo.zip[InternationalizeDemo.zip]
 project to any location on your computer.
 2. Choose File > Open Project, navigate to the  ``InternationalizeDemo``  
project that you extracted in the last step, and click Open. The project folder 
might be in a containing folder that is also called  ``InternationalizeDemo`` .
 3. Expand Source Packages > Demo and double-click  ``FindDialog.java`` . The 
sample form opens in the GUI Builder.
 
@@ -341,12 +341,12 @@ The IDE opens the  ``Find.java``  file in the Source 
Editor.
 
 . Insert the following line in bold in the main method:
 
-[source,xml]
+[source,java,subs="verbatim,macros"]
 ----
 
     public static void main(String args[]) {
-                          /* Set the Nimbus look and feel */
-                          //<editor-fold defaultstate="collapsed" desc=" Look 
and feel setting code (optional) ">
+       /* Set the Nimbus look and feel */
+       //<editor-fold defaultstate="collapsed" desc=" Look and feel setting 
code (optional) ">
         /* If Nimbus (introduced in Java SE 6) is not available, stay with the 
default look and feel.
          * For details see 
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
          */
@@ -368,13 +368,13 @@ The IDE opens the  ``Find.java``  file in the Source 
Editor.
         }
         //</editor-fold>
         *System.out.println();*
-               /* Create and display the form */ 
+       /* Create and display the form */ 
         java.awt.EventQueue.invokeLater(new Runnable() {
             public void run() {
                 new Find().setVisible(true);
             }
         });
-               }
+    }
 ----
 
 
@@ -396,12 +396,12 @@ image::./insi18nstring.png[]
 
 . The IDE inserts an internationalized string:
 
-[source,xml]
+[source,java,subs="verbatim,macros"]
 ----
 
     public static void main(String args[]) {
-                          /* Set the Nimbus look and feel */
-                          //<editor-fold defaultstate="collapsed" desc=" Look 
and feel setting code (optional) ">
+       /* Set the Nimbus look and feel */
+       //<editor-fold defaultstate="collapsed" desc=" Look and feel setting 
code (optional) ">
         /* If Nimbus (introduced in Java SE 6) is not available, stay with the 
default look and feel.
          * For details see 
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
          */
@@ -422,12 +422,12 @@ image::./insi18nstring.png[]
             
java.util.logging.Logger.getLogger(Find.class.getName()).log(java.util.logging.Level.SEVERE,
 null, ex);
         }
         //</editor-fold>
-*        
System.out.println(java.util.ResourceBundle.getBundle("examples/Find").getString("Start"));*
+        
*System.out.println(java.util.ResourceBundle.getBundle("examples/Find").getString("Start"));*
         /* Create and display the form */
         java.awt.EventQueue.invokeLater(new Runnable() {
             public void run() {
                 new Find().setVisible(true);
                 }
             });
-               }
+    }
 ----


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

Reply via email to