Re: looking for another way of updating text in a swing component




"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

.



Relevant Pages

  • Re: Aspect ratio explanation needed, please!
    ... The source material was 1.8 anamorphic, the output was xvid ... Three different players: ... needed to set aspect to 16:9, then display was perfect ... My surprise is that an xvid encoded, filled 720x480 frame ...
    (rec.video.desktop)
  • Re: Help Regarding GUI
    ... tk.i want to design a gui with a List of 5 fields and display it with ... and when running the script the gui is ... pack $f.label -side left ...
    (comp.lang.tcl)
  • Re: Graphics help please
    ... to render an entire image and then display it. ... thread needs to call repaint() repeatedly. ... while paintComponent() is still running, ... When the calculation of the next generation is being done ...
    (comp.lang.java.programmer)
  • OSX arbitrary sequences at frame rate with OpenGL ?
    ... I got a sample display program going on Mac OSX 10.4.2 ... With this code I have been able to display short frame sequences ... software lookup run by the GPU on the graphics card? ...
    (comp.sys.mac.programmer.help)
  • Re: double buffering
    ... >the middle of drawing a frame. ... If you're learning about double buffering, you might also want to look ... Once upon a time, not so long ago, we did not have frame ... whole and to display that whole. ...
    (comp.graphics.algorithms)