Update TextArea

Discussion in 'Java' started by bwilde@gmail.com, May 22, 2006.

  1. Guest

    Hello,

    I have a recursive function in which I would like to update the text
    held in a JTextArea. The problem that I'm running into is that the
    updates do not occur live, but rather only once the program is done
    with execution.

    I looked on the forum and saw it recommended to use the update() method
    to handle this. I don't know if it's because I'm using Java 1.5, but
    the options that I have are updateUI or update(Graphics g). The
    updateUI does not work, and I'm not doing anything with graphics, so
    neither of these seem to be valid options.

    Does anybody have an idea of what else I can try?

    Thanks,
    Ben
     
    , May 22, 2006
    #1
    1. Advertising

  2. wrote:
    > Hello,
    >
    > I have a recursive function in which I would like to update the text
    > held in a JTextArea. The problem that I'm running into is that the
    > updates do not occur live, but rather only once the program is done
    > with execution.
    >
    > I looked on the forum and saw it recommended to use the update() method
    > to handle this. I don't know if it's because I'm using Java 1.5, but
    > the options that I have are updateUI or update(Graphics g). The
    > updateUI does not work, and I'm not doing anything with graphics, so
    > neither of these seem to be valid options.
    >
    > Does anybody have an idea of what else I can try?
    >
    > Thanks,
    > Ben
    >


    You could post a simple compilable example that demonstrates your
    problem. In lieu of that you could post your actual code.

    --

    Knute Johnson
    email s/nospam/knute/
     
    Knute Johnson, May 22, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hartmut Schroth
    Replies:
    3
    Views:
    3,543
    Hartmut Schroth
    Dec 1, 2003
  2. joun
    Replies:
    9
    Views:
    2,280
    W.G. Ryan eMVP
    Nov 30, 2004
  3. Augustus
    Replies:
    1
    Views:
    399
    Ken Schaefer
    Sep 10, 2003
  4. Textarea Inside of a textarea

    , Feb 4, 2006, in forum: ASP General
    Replies:
    6
    Views:
    363
    Anthony Jones
    Feb 5, 2006
  5. Replies:
    1
    Views:
    357
    Bart Van der Donck
    Jul 4, 2007
Loading...

Share This Page