Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Read a text and extract data and display it in JTables

  1. #1
    Junior Member
    Join Date
    May 2014
    Thanked 0 Times in 0 Posts

    Default Read a text and extract data and display it in JTables


    My problem is to read a text file which contains lines of text data{e.g: #1115=CLOSED_SHELL(",(#166,#208,#250.....#1114));} . I need to break it and #numbers in braces are assigned to string array and they should cal by one by one. similarly next level on calling #166 same operation should perform{#166=ADVANCED_FACE(",(#165),#129,.F.);} like this 8 levels were there, finally at each level the Calling number should display in JTable. Please help me get out of this problem. please give me code for at least the given two levels. the given pattern for each level is static. please use pattern matcher and start it with searching the input text file with string CLOSED_SHELL.
    Waiting for response.

    Thank you.

  2. #2
    Super Moderator
    Join Date
    Jun 2013
    So. Maryland, USA
    My Mood
    Thanked 698 Times in 680 Posts

    Default Re: Read a text and extract data and display it in JTables

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

    We won't give you code, but we will give you options to try if we understand the problem. I don't understand the problem. Perhaps if you gave a couple lines of data and then show what the program should parse from that I would understand better.

Similar Threads

  1. Display database values into JTables
    By tommyacton in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 13th, 2013, 02:54 PM
  2. Loop used to read different data values from a text file
    By mjrox96 in forum Loops & Control Statements
    Replies: 10
    Last Post: July 10th, 2013, 03:49 PM
  3. How to read different data segments from a text file?
    By alutchman in forum What's Wrong With My Code?
    Replies: 3
    Last Post: June 18th, 2013, 01:35 PM
  4. Replies: 8
    Last Post: March 25th, 2011, 02:34 PM
  5. Read data from text file
    By yroll in forum Algorithms & Recursion
    Replies: 4
    Last Post: December 31st, 2009, 01:40 AM