Add 'src/jexer/' from commit 'cf01c92f5809a0732409e280fb0f32f27393618d'
[nikiroo-utils.git] / src / jexer / demos / Demo6.java
index 236e7a276733410d95d80224be04ccb792adc889..db0b5c9d3f53a7083d4a47a99930ebcec9058d3b 100644 (file)
@@ -28,6 +28,8 @@
  */
 package jexer.demos;
 
+import java.util.ResourceBundle;
+
 import jexer.TApplication;
 import jexer.backend.*;
 import jexer.demos.DemoApplication;
@@ -37,6 +39,15 @@ import jexer.demos.DemoApplication;
  */
 public class Demo6 {
 
+    /**
+     * Translated strings.
+     */
+    private static final ResourceBundle i18n = ResourceBundle.getBundle(Demo6.class.getName());
+
+    // ------------------------------------------------------------------------
+    // Demo6 ------------------------------------------------------------------
+    // ------------------------------------------------------------------------
+
     /**
      * Main entry point.
      *
@@ -107,6 +118,7 @@ public class Demo6 {
              * window menus.
              */
             TApplication monitor = new TApplication(monitorBackend);
+            monitor.addToolMenu();
             monitor.addFileMenu();
             monitor.addWindowMenu();
 
@@ -117,8 +129,10 @@ public class Demo6 {
              * eliminate) screen tearing/artifacts.
              */
             TWindowBackend windowBackend = new TWindowBackend(demoApp,
-                monitor, "Monitor Window", width + 2, height + 2);
+                monitor, i18n.getString("monitorWindow"),
+                width + 2, height + 2);
             windowBackend.setDrawLock(multiScreen);
+            windowBackend.setOtherApplication(demoApp);
             multiBackend.addBackend(windowBackend);
 
             /*