/* * InternationalizationExample.java * * */ /** * * @author Vassil Boyadjiev */ public class InternationalizationExample extends javax.swing.JFrame { /** Creates new form InternationalizationExample */ public InternationalizationExample() { initComponents(); //The location of the language file should be a fully qualified URL hTMLEditor1.loadInterfaceLanguageFile("file:///C:/temp/languages/sample-german-translation.txt"); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ private void initComponents() {//GEN-BEGIN:initComponents hTMLEditor1 = new sferyx.administration.editors.HTMLEditor(); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } }); getContentPane().add(hTMLEditor1, java.awt.BorderLayout.CENTER); pack(); }//GEN-END:initComponents /** Exit the Application */ private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm System.exit(0); }//GEN-LAST:event_exitForm /** * @param args the command line arguments */ public static void main(String args[]) { new InternationalizationExample().show(); } // Variables declaration - do not modify//GEN-BEGIN:variables private sferyx.administration.editors.HTMLEditor hTMLEditor1; // End of variables declaration//GEN-END:variables }