Package org.gofleet.internacionalization

Examples of org.gofleet.internacionalization.I18n


    String errorCause = t.toString();
    try {
      LOG.fatal("Error al iniciar la aplicación", t);

      if (t instanceof TransactionException) {
        errorCause = (new I18n()).getString("Main.Error.database");
      }

      Object[] options = { "Ver más detalle", "Cerrar" };

      I18n i18n = new I18n();

      if (JOptionPane.showOptionDialog(null,
          "<html><p>" + i18n.getString("Main.Error") + ":</p><p>"
              + errorCause + "</p><html>",
          i18n.getString("Main.Error"), JOptionPane.YES_NO_OPTION,
          JOptionPane.ERROR_MESSAGE, null, options, options[1]) == 0) {
        final JFrame error = new JFrame();
        error.setAlwaysOnTop(true);
        error.setBackground(Color.WHITE);
        JTextArea area = new JTextArea();
View Full Code Here

TOP

Related Classes of org.gofleet.internacionalization.I18n

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.