Search:

Type: Posts; User: javapenguin

Search: Search took 0.07 seconds.

  1. Re: Not able to read from a textfiel the way it's supposed to.

    What is this part for:

    while(console.hasNext())
    {
    System.out.println("Hi");
    if (console.next().equals("<Page2>"))
    {

    ...
  2. Re: Not able to read from a textfiel the way it's supposed to.

    Not quite. I added the lines:


    if (console.next().equals("<Page2>"))
    {

    while (console.hasNext() &&...
  3. Re: Not able to read from a textfiel the way it's supposed to.

    Post 8 isn't as import as Post 9. Post 9 should be answered first.
  4. Re: Not able to read from a textfiel the way it's supposed to.

    Ok, when I tried it with the second text area, this time using <Page2> </Page2> as the edges, and I wanted it not to read in anything between <Page1> and </Page1> at all, it gave me nothing for the...
  5. Re: Not able to read from a textfiel the way it's supposed to.

    It worked just fine but when I decided to see what would happen if I added a new line just below the first one but didn't have a blank line, it went back to the bad output again.


    import...
  6. Re: Not able to read from a textfiel the way it's supposed to.

    Ok, now it's ignroing everything in between <Page1> and </Page1>

    and continuing on with the other things and is printing out:


    </Page1>
    <Page2>

    </Page2>
    <Page3>
  7. Re: Not able to read from a textfiel the way it's supposed to.

    I added some lines to the text file. It's getting better but it's still not quite working.


    import javax.swing.JTextArea;
    import javax.swing.JScrollPane;
    import javax.swing.JFrame;
    ...
  8. Not able to read from a textfiel the way it's supposed to.

    I had been trying to make digital books. However, I wanted to split it into pages and had been wondering if there was a way to store entire chapters and use tags, like html, sort of, to tell it what...
Results 1 to 8 of 8