hi, i'm fairly new to java and am experimenting with various swing
components. as far as I know at this time, when a change occurs in the text
i want to display, in order to show it, I have to repaint the frame.
Is there a component or way of placing a textarea of sorts in a GUI and then
have they data fed to it update without having to refresh the whole frame
each time? for example, log files fed to the GUI... as the data comes in
each line of the logs is added to the the display. I am looking for some
class in the api to look over or something i can google.
thanks...Steve
Oliver Wong - 06 Jun 2006 16:17 GMT
> hi, i'm fairly new to java and am experimenting with various swing
> components. as far as I know at this time, when a change occurs in the
[quoted text clipped - 7 lines]
> each line of the logs is added to the the display. I am looking for some
> class in the api to look over or something i can google.
In my expeirence, if you call the setText() method of a JLabel, for
example, it takes care of repainting itself automatically.
- Oliver