Results 1 to 3 of 3
  1. #1
    victoryo is offline Member
    Join Date
    Dec 2011
    Posts
    16
    Rep Power
    0

    Default Read file in jtable

    Hi all,

    I got a file that looks like this when i open it in a text editor.

    Name1
    Name2
    50,50,50
    60,60,60

    In the end i want to read this data in a jtable like this.

    Name1 Name2
    150 180

    How can i do this?
    I've read something about a buffered reader.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,742
    Rep Power
    19

    Default Re: Read file in jtable

    Define your rules for the layout of the file and what you need to do.
    That'll give you your logic.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Read file in jtable

    Quote Originally Posted by victoryo View Post
    I've read something about a buffered reader.
    Read more about it here: Lesson: Basic I/O (The Java™ Tutorials > Essential Classes)

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 1
    Last Post: 08-05-2011, 09:21 PM
  2. JTable. make it read what's in the box
    By Maraxus in forum AWT / Swing
    Replies: 6
    Last Post: 09-18-2010, 01:41 PM
  3. Replies: 0
    Last Post: 02-11-2009, 09:53 AM
  4. Replies: 5
    Last Post: 02-05-2009, 10:28 AM
  5. How to read a text file from a Java Archive File
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-08-2008, 09:13 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
  •