Package nu.lazy8.util.gen

Examples of nu.lazy8.util.gen.WorkingDialog.dispose()


        WorkingDialog workDialog = new WorkingDialog(view);
        workDialog.setVisible(true);
        workDialog.SetProgress(0);
        try {
          ReadInFile(fileDialog.getSelectedFile());
          workDialog.dispose();
          //final adjustments
          JOptionPane.showMessageDialog(null,
              Translator.getTranslation("Successful"),
              "",
              JOptionPane.PLAIN_MESSAGE);
View Full Code Here


              Translator.getTranslation("Successful"),
              "",
              JOptionPane.PLAIN_MESSAGE);
        } catch (Exception e) {
          e.printStackTrace();
          workDialog.dispose();
          JOptionPane.showMessageDialog(null,
              Translator.getTranslation("Failed to import") + " : " + e,
              "",
              JOptionPane.PLAIN_MESSAGE);
        }
View Full Code Here

        WorkingDialog workDialog = new WorkingDialog(view);
        workDialog.setVisible(true);
        workDialog.SetProgress(0);
        try {
          ReadInFile(fileDialog.getSelectedFile(), workDialog);
          workDialog.dispose();
          //final adjustments
          //version 2.20, fix the PeriodId field in Activity2
          lazy8ledger.Lazy8LedgerPlugin.AdjustAllPeriodIds(globalCompId);
          if (!foundAccountType) {
            new Upgrade20Dialogs(view, true, false, "", globalCompId);
View Full Code Here

              Translator.getTranslation("Successful"),
              "",
              JOptionPane.PLAIN_MESSAGE);
        } catch (Exception e) {
          e.printStackTrace();
          workDialog.dispose();
          if (globalCompId != 0 && iCompanyToResoreTo == 0) {
            DeleteCompany.RemoveCompanyFromDatabase(globalCompId, view, iCompanyToResoreTo == 0);
          }
          JOptionPane.showMessageDialog(null,
              Translator.getTranslation("Failed to import") + " : " + e,
View Full Code Here

      for (int i = 0; i < sTables.length; i++) {
        SaveTable(doOut, sTables[i], bBackupOneCompanyOnly, iCompanyToBackup);
        workDialog.SetProgress((i * 100) / (sTables.length));
      }
      SystemLog.ErrorPrintln("before clossing work dialog");
      workDialog.dispose();
      SystemLog.ErrorPrintln("after clossing work dialog");

      doOut.close();
      SystemLog.ErrorPrintln("after closeing file");

View Full Code Here

      doOut.close();
      SystemLog.ErrorPrintln("after closeing file");

    } catch (Exception e2) {
      e2.printStackTrace();
      workDialog.dispose();
      SystemLog.ErrorPrintln("FAILED trying to backup: " +
          e2.getMessage());
      JOptionPane.showMessageDialog(null,
          Translator.getTranslation("Unable to create file. Error") +
          " : " + e2.getMessage(),
View Full Code Here

                " and version number " + dVersion + " should equal " + dVersionNumber);
            JOptionPane.showMessageDialog(null,
                Translator.getTranslation("Invalid file name."),
                Translator.getTranslation("Update not entered"),
                JOptionPane.PLAIN_MESSAGE);
            workDialog.dispose();
            return;
          }
        } else
            if (filedescriptor.compareTo(sFileDesc) != 0
             || dVersion > dVersionNumber || dVersion < dVersionNumber
View Full Code Here

              " and version number " + dVersion + " should equal " + dVersionNumber);
          JOptionPane.showMessageDialog(null,
              Translator.getTranslation("Invalid file name."),
              Translator.getTranslation("Update not entered"),
              JOptionPane.PLAIN_MESSAGE);
          workDialog.dispose();
          return;
        }

        //get  the number of tables
        int iNumTables = doIn.readInt();
View Full Code Here

        EditBus.send(new CompanyListChanged(null, "no parameters"));
        EditBus.send(new CustomerListChanged(null, "no parameters"));
        EditBus.send(new AccountTypeListChanged(null, "no parameters"));
      } catch (Exception ee) {
        ee.printStackTrace();
        workDialog.dispose();
        //Cannot continue, the file does not exist
        JOptionPane.showMessageDialog(null,
            Translator.getTranslation("Invalid file name.") +
            " : " + ee.getMessage(),
            Translator.getTranslation("Update not entered"),
View Full Code Here

        SystemLog.ErrorPrintln("FAILED trying to backup: " +
            ee.getMessage());
        return;
      }
    }
    workDialog.dispose();
  }//}}}

  //{{{ +RestoreTable(DataInputStream, boolean, boolean, Integer) : void
  /**
   *  Description of the Method
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.