Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Re: NEED TO EXTRACT FROM CSV FILE PUT INTO JTEXTFIELDS (JAVA SWING GUI)

    If every line has one or more commas, how can a comma be used to select the tf to put the line in?


    Look at the methods in the String class. There are some that can be used to check if a String...
  2. Re: NEED TO EXTRACT FROM CSV FILE PUT INTO JTEXTFIELDS (JAVA SWING GUI)

    What determines what location a line is to be displayed in?
    When a line is read from the file, how will the program decide which tf to add the line to? Is there something in the line that will...
  3. Re: NEED TO EXTRACT FROM CSV FILE PUT INTO JTEXTFIELDS (JAVA SWING GUI)

    What determines what location a line is to be displayed in? See post#4 for some considerations.
  4. Re: NEED TO EXTRACT FROM CSV FILE PUT INTO JTEXTFIELDS (JAVA SWING GUI)

    Let's work on the problems one at a time. Start with this one:

    The Scanner class is easy to use for reading lines from a file. Define a Scanner object to read from the file.
    Write a loop to...
  5. Re: NEED TO EXTRACT FROM CSV FILE PUT INTO JTEXTFIELDS (JAVA SWING GUI)

    Which of the steps are you having problems with?

    How do you decide which tf to add a String to? Can the tf be referenced from an array?
    Inside a loop the Strings could be read from the file and...
  6. Re: NEED TO EXTRACT FROM CSV FILE PUT INTO JTEXTFIELDS (JAVA SWING GUI)

    I don't understand what the problem is. A String can be added to any number of textfields. There are no restrictions.

    pseudo code:
    read string
    add string to tf1
    add string to tf2
    add string...
  7. Re: NEED TO EXTRACT FROM CSV FILE PUT INTO JTEXTFIELDS (JAVA SWING GUI)

    There is no restriction on how many different textfields that Strings can be added to.

    There are listeners that can be added to the textfields that can be called when there are changes made.
    The...
Results 1 to 7 of 7