Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions modules/ROOT/pages/kb/docs/java/gui-automatic-i18n.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
*/
Expand All @@ -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);
}
});
}
}
----


Expand All @@ -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
*/
Expand All @@ -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);
}
});
}
}
----