From e2e53cb1bc3ec6435f9d32bc0ba170a476aa0246 Mon Sep 17 00:00:00 2001 From: Eric Barboni Date: Mon, 4 Mar 2024 15:13:20 +0100 Subject: [PATCH] demo from webarchive Recover zip from archive, fix java output --- .../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 */ - // + /* Set the Nimbus look and feel */ + // /* 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. } // *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 */ - // + /* Set the Nimbus look and feel */ + // /* 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); } // -* 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); } }); - } + } ----