Package nu.lazy8.util.gen

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


      }
      bufOut.write("</lazy8webport>");
      bufOut.newLine();     
      bufOut.flush();
      bufOut.close();
      workDialog.dispose();
    }catch(Exception e){
      workDialog.dispose();
      Log.log(Log.DEBUG, this, "Failed to export" + e);
      e.printStackTrace();
      JOptionPane.showMessageDialog(null,
View Full Code Here


      bufOut.newLine();     
      bufOut.flush();
      bufOut.close();
      workDialog.dispose();
    }catch(Exception e){
      workDialog.dispose();
      Log.log(Log.DEBUG, this, "Failed to export" + e);
      e.printStackTrace();
      JOptionPane.showMessageDialog(null,
          Translator.getTranslation("Failed to export") + " : " + e,
          "",
View Full Code Here

      }
      out.close();
    } catch (Exception e) {
      Log.log(Log.ERROR, this, "Error printing CSV file=" + e);
    }
    workDialog.dispose();
  }//}}}

  //{{{ -createData(String[]) : CheckableItem[]
  /**
   *  Description of the Method
View Full Code Here

        if (numFields == -1) {
          numFields = line.length;
        } else {
          if (numFields != line.length) {
            resultMessage.append("Failed row=" + (numRows + 1) + " : All rows must have the same number of Fields" + "\n");
            workDialog.dispose();
            in.close();
            return resultMessage;
          }
        }
        numRows++;
View Full Code Here

        numRows++;
      }
      in.close();
      if (numRows == 0) {
        resultMessage.append("The file is empty");
        workDialog.dispose();
        return resultMessage;
      }
      FileInputStream in2 = new FileInputStream(csvFile);
      CSVParse shredder = getParser(in2);
      line = shredder.getLine();
View Full Code Here

        act_id = ((Integer) (formatNumPane.numPanels[formatNumPane.SHOW_INTEGER]
            .parse(line[tableMatchedIndexes[INDEX_ACT_ID]]))).intValue();
      } catch (Exception e) {
        resultMessage.append("Failed row=" + rowCount + " : Cannot continue processing this file.  Bad transaction number found="
             + line[tableMatchedIndexes[tableMatchedIndexes[INDEX_ACT_ID]]] + "\n");
        workDialog.dispose();
        in2.close();
        return resultMessage;
      }
      do {
        rowCount++;
View Full Code Here

            act_id_test = ((Integer) (formatNumPane.numPanels[formatNumPane.SHOW_INTEGER]
                .parse(line[tableMatchedIndexes[INDEX_ACT_ID]]))).intValue();
          } catch (Exception e) {
            resultMessage.append("Failed row=" + rowCount + " : Cannot continue processing this file.  Bad transaction number found="
                 + line[tableMatchedIndexes[INDEX_ACT_ID]] + "\n");
            workDialog.dispose();
            in2.close();
            return resultMessage;
          }
        }
        if (line == null || act_id_test != act_id) {
View Full Code Here

      } while (line != null);
      in2.close();
    } catch (java.io.IOException e) {
      resultMessage.append("Failed row=" + rowCount + " : File error reading this row" + "\n");
    }
    workDialog.dispose();
    //version 2.20, fix the PeriodId field in Activity2
    lazy8ledger.Lazy8LedgerPlugin.AdjustAllPeriodIds(CompId);
    if (tableMatchedIndexes[INDEX_AMOUNT] != -1) {
      tableMatchedIndexes[INDEX_DEBIT] = -1;
      tableMatchedIndexes[INDEX_CREDIT] = -1;
View Full Code Here

        if (numFields == -1) {
          numFields = t.length;
        } else {
          if (numFields != t.length) {
            resultMessage.append("Failed row=" + (numRows + 1) + " : All rows must have the same number of Fields" + "\n");
            workDialog.dispose();
            in.close();
            ErrorDialog showErrors = new ErrorDialog(resultMessage, false, null);
            return;
          }
        }
View Full Code Here

      }
      in2.close();
    } catch (java.io.IOException e) {
      resultMessage.append("Failed row=" + rowCount + " : File error reading this row. Import aborted" + "\n");
    }
    workDialog.dispose();
    if (resultMessage.length() == 0) {
      JOptionPane.showMessageDialog(this,
          "No errors detected",
          "",
          JOptionPane.PLAIN_MESSAGE);
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.