Results 1 to 1 of 1
  1. #1
    Join Date
    Dec 2008
    Posts
    1
    Rep Power
    0

    Default jdbTable() and TableDataSet() data input

    All,
    I am pretty new to Java and most things I need or want to accomplish I can find through searches but I am kinda stumped on the "better" path to take. I currently have a currently have a text file that is pulled into a TableDataSet via TextDataFile() - everything works well.

    What I want to do is read an encrypted file in (password.txt), decrypt it to a string or array, and import it a TableDataSet.

    How can I go from a string/array, or data --> TableDataSet. Should attempt to do it this way? Another thing I have to consider is saving changes TableDataSet back to password.txt file.
    tableDataSet1.getDataFile().save(tableDataSet1);

    a few snippets....
    ######################
    TextDataFile textDataFile1 = new TextDataFile();
    TableDataSet tableDataSet1 = new TableDataSet();
    ...

    textDataFile1.setFileName("src\\passwords.txt");
    textDataFile1.setSeparator(",");
    tableDataSet1.setDataFile(textDataFile1);
    tableDataSet1.setSchemaName("");
    ...
    jdbTable1.setDataSet(tableDataSet1);
    ########################


    Seems like TextDataFile() uses a fetch to get data from text file. Does anyone know away around this? Again, I can pull the data in using, FileUtils.readFileToString(dataFileIN);,
    so I can decrypt it but I don't know how to get it into the TableDataSet.

    Any help would be great.

    Thank you,
    Stingalingaling
    Last edited by stingalingaling; 12-28-2008 at 05:28 AM. Reason: idea

Similar Threads

  1. error while retrieving data from data base
    By kirtesh4u in forum New To Java
    Replies: 5
    Last Post: 11-15-2008, 04:10 PM
  2. Input....in JTable
    By kirtesh4u in forum AWT / Swing
    Replies: 0
    Last Post: 11-15-2008, 09:15 AM
  3. Replies: 0
    Last Post: 10-31-2008, 02:13 PM
  4. Data Sorting in a .data file using java
    By stutiger99 in forum New To Java
    Replies: 2
    Last Post: 10-08-2008, 02:52 AM
  5. how to take input and verify input in Java programs
    By bilal_ali_java in forum Advanced Java
    Replies: 0
    Last Post: 07-21-2007, 08:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •