X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fdemos%2FDemo5.java;h=e63abc1b848c37d8a9ea7b06346eefe875af7f31;hb=12b90437b5f22c2ae6e9b9b14c3b62b60f6143e5;hp=df8075a982005ccb1839eb959990025496747a66;hpb=3e0743556d1f31723a11a6019b5c2b018b4b2104;p=fanfix.git diff --git a/src/jexer/demos/Demo5.java b/src/jexer/demos/Demo5.java index df8075a..e63abc1 100644 --- a/src/jexer/demos/Demo5.java +++ b/src/jexer/demos/Demo5.java @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (C) 2017 Kevin Lamonte + * Copyright (C) 2019 Kevin Lamonte * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -31,6 +31,7 @@ package jexer.demos; import java.awt.Font; import java.awt.event.WindowEvent; import java.awt.event.WindowListener; +import java.util.ResourceBundle; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JSplitPane; @@ -44,6 +45,15 @@ import jexer.backend.SwingBackend; */ public class Demo5 implements WindowListener { + /** + * Translated strings. + */ + private static final ResourceBundle i18n = ResourceBundle.getBundle(Demo5.class.getName()); + + // ------------------------------------------------------------------------ + // Variables -------------------------------------------------------------- + // ------------------------------------------------------------------------ + /** * The first demo application instance. */ @@ -54,6 +64,10 @@ public class Demo5 implements WindowListener { */ DemoApplication app2 = null; + // ------------------------------------------------------------------------ + // WindowListener --------------------------------------------------------- + // ------------------------------------------------------------------------ + /** * Pass window events into the event queue. * @@ -122,6 +136,10 @@ public class Demo5 implements WindowListener { // Ignore } + // ------------------------------------------------------------------------ + // Demo5 ------------------------------------------------------------------ + // ------------------------------------------------------------------------ + /** * Run two demo applications in separate panes. */ @@ -184,7 +202,7 @@ public class Demo5 implements WindowListener { mainPane.setBorder(null); frame.setContentPane(mainPane); - frame.setTitle("Two Jexer Apps In One Swing UI"); + frame.setTitle(i18n.getString("frameTitle")); frame.setSize(1000, 640); frame.setVisible(true); }