Results 1 to 6 of 6
  1. #1
    Keerti is offline Member
    Join Date
    Jul 2008
    Posts
    5
    Rep Power
    0

    Default Inserting a Table in a TextFile?

    Hi all
    I have a query regarding JTable and text files.
    Can I put a JTable in a Text file?
    Or is it possible to have any sort of Table( other than the JTable) in a Text file?
    Any other alternative solution is welcome.What I need is to display a table in a Text file(.txt files).
    Thanks

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,458
    Rep Power
    25

    Default

    Not sure what you mean. A text file has no structure. It contains what you want to put into it. If you can get the contents out of any class, you can write it to a text file.
    How are you "displaying" the text file containing the table? What formatting would you expect?

  3. #3
    surya_dks is offline Member
    Join Date
    Jul 2008
    Posts
    5
    Rep Power
    0

    Default

    I think it's not possible, but you can try for tab delimmted structure.

  4. #4
    mrcheeks is offline Member
    Join Date
    Jan 2008
    Posts
    22
    Rep Power
    0

    Default

    You'll need to write the code yourself, there's no magic method for that.
    Loop on your table and write each row as you like in the text file.

  5. #5
    veeri.ramu is offline Member
    Join Date
    Nov 2008
    Posts
    1
    Rep Power
    0

    Default

    Hi I have one Customer table in database.

    By using jsp, I want to display all records of Customer table.

    help me with coding...

    thanks
    ramu.

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    1) Please create a new thread rather than resurrect an old one.
    2) Please read this link as it will help you to phrase your question in a way that is more answerable:
    How To Ask Questions The Smart Way

Similar Threads

  1. Search TextFile
    By gsupriyarao@yahoo.com in forum Advanced Java
    Replies: 5
    Last Post: 04-11-2008, 11:03 AM
  2. Inserting current date into a DB table
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-15-2008, 08:38 AM
  3. Inserting into a table (Example)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-06-2008, 09:25 AM
  4. Textfile and GUI problems
    By saytri in forum New To Java
    Replies: 2
    Last Post: 12-21-2007, 04:08 PM
  5. menu inserting table in the document
    By daredavil82 in forum New To Java
    Replies: 0
    Last Post: 12-05-2007, 05:05 PM

Posting Permissions

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