Re: looking for another way of updating text in a swing component
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Tue, 06 Jun 2006 15:17:19 GMT
"Steve" <1@xxxxx> wrote in message news:yA9hg.2169$lf4.930@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.
In my expeirence, if you call the setText() method of a JLabel, for example, it takes care of repainting itself automatically.
- Oliver
.
- Prev by Date: Re: How to encode yEnc?
- Next by Date: JSP Current Path
- Previous by thread: Re: How to encode yEnc?
- Next by thread: JSP Current Path
- Index(es):
Relevant Pages
|
|