diff --git a/source/org/thdl/tib/scanner/AppletScannerFilter.java b/source/org/thdl/tib/scanner/AppletScannerFilter.java index a075698..1923eab 100644 --- a/source/org/thdl/tib/scanner/AppletScannerFilter.java +++ b/source/org/thdl/tib/scanner/AppletScannerFilter.java @@ -50,7 +50,6 @@ public class AppletScannerFilter extends JApplet implements ActionListener, Focu private JMenu mnuEdit; private Object objModified; - private Dialog diagAbout; ScannerPanel sp; public void init() @@ -69,6 +68,7 @@ public class AppletScannerFilter extends JApplet implements ActionListener, Focu // sp = new SimpleScannerPanel(url); sp = new DuffScannerPanel(url); + sp.addFocusListener(this); setContentPane(sp); @@ -118,6 +118,11 @@ public class AppletScannerFilter extends JApplet implements ActionListener, Focu setJMenuBar(mb); //mnuEdit.setEnabled(false); + + //{{REGISTER_LISTENERS + SymComponent aSymComponent = new SymComponent(); + this.addComponentListener(aSymComponent); + //}} } /** Added to update the Edit menu in dependence upon @@ -260,4 +265,19 @@ public class AppletScannerFilter extends JApplet implements ActionListener, Focu { sp.setEnableTibetanScript(e.getStateChange()==ItemEvent.SELECTED); } + + class SymComponent extends java.awt.event.ComponentAdapter + { + public void componentMoved(java.awt.event.ComponentEvent event) + { + Object object = event.getSource(); + if (object == AppletScannerFilter.this) + AppletScannerFilter_componentMoved(event); + } + } + + void AppletScannerFilter_componentMoved(java.awt.event.ComponentEvent event) + { + // to do: code goes here. + } } diff --git a/source/org/thdl/tib/scanner/TibetanScanner.java b/source/org/thdl/tib/scanner/TibetanScanner.java index 8e6dba1..c86d289 100644 --- a/source/org/thdl/tib/scanner/TibetanScanner.java +++ b/source/org/thdl/tib/scanner/TibetanScanner.java @@ -28,13 +28,16 @@ public interface TibetanScanner { public static final String copyrightUnicode="Copyright " + '\u00A9' + " 2000-2002 by Andr" + '\u00E9' + "s Montano Pellegrini, all rights reserved."; public static final String copyrightASCII="Copyright 2000-2002 by Andres Montano Pellegrini, all rights reserved."; - public static final String copyrightHTML="
Copyright © 2000-2002 by Andrés Montano Pellegrini
All rights reserved
"; + public static final String copyrightHTML="
" + "The Tibetan to English Translation Tool: Version 1.1, compiled at " + ThdlVersion.getTimeOfCompilation() + ". Copyright © 2000-2002 by Andrés Montano Pellegrini
All rights reserved
"; public static final String aboutUnicode= - "The Tibetan to English Translation Tool: Version 1.1, compiled at " + ThdlVersion.getTimeOfCompilation() + ".\n\n" + /* FIXME HARD-CODED VERSION NUMBER */ + "The Tibetan to English Translation Tool: Version 1.1.\n" + + "Compiled at " + ThdlVersion.getTimeOfCompilation() + ".\n\n" + /* FIXME HARD-CODED VERSION NUMBER */ "Copyright " + '\u00A9' + " 2000-2002 by Andr" + '\u00E9' + "s Montano Pellegrini, all rights reserved.\n\n" + - "This software is protected by the terms of the AMP Open Community License 1.0 (available at www.tibet.iteso.mx/Guatemala/). " + - "The Tibetan script input facility was built by THDL's Edward Garrett (http://www.thdl.org/). " + - "It uses Tibetan Computer Company (http://www.tibet.dk/tcc/)fonts created by Tony Duff and made available by the Trace Foundation (http://trace.org/)."; + "This software is protected by the terms of the AMP Open Community\n" + + "License 1.0 (available at www.tibet.iteso.mx/Guatemala/). The Tibetan\n" + + "script input facility was built by THDL's Edward Garrett (http://www.thdl.org/).\n" + + "It uses Tibetan Computer Company (http://www.tibet.dk/tcc/)fonts created\n" + + "by Tony Duff and made available by the Trace Foundation (http://trace.org/)."; public void scanLine(String linea); public void scanBody(String linea); public void finishUp();