demo from webarchive
Recover zip from archive,
fix java output
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 8c4d8b5..b60c58a 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 @@
=== 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 @@
. 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 @@
}
//</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 @@
. 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 @@
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);
}
});
- }
+ }
----