gildan2020
asked on
displaying one at a time
hi, i wrote a simple program that contains a button and a jtextarea
when i click on the button, it will do the following...
jtextarea.append("a\n"); //statement a
jtextarea.append("b\n"); //statement b
jtextarea.append("c\n"); //statement c
wat i reli want is that...it shows statement a on the jtextarea first...after a few seconds, statement b....a few more seconds, statement c
i tried using this.sleep(1000), but it will just hang for a few seconds and then finally display everything at once
how do i display those statements once at a time? i'm using actionPerformed() for the button, is this correct?
thx,
gildan2020
when i click on the button, it will do the following...
jtextarea.append("a\n"); //statement a
jtextarea.append("b\n"); //statement b
jtextarea.append("c\n"); //statement c
wat i reli want is that...it shows statement a on the jtextarea first...after a few seconds, statement b....a few more seconds, statement c
i tried using this.sleep(1000), but it will just hang for a few seconds and then finally display everything at once
how do i display those statements once at a time? i'm using actionPerformed() for the button, is this correct?
thx,
gildan2020
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:°)
ASKER
that's exactly wat i wanted
:-)
gildan2020