Help: JScrollPane in a Java Swing GUI

From: DaVinci (DaVinci_at_history.com)
Date: 10/27/04


Date: Wed, 27 Oct 2004 20:31:08 GMT

Hello,

I have a GUI that I programmed and one of the Panels in it contains a
JTextArea. I set it to scroll with the following code:

this.outPanel.add(new JScrollPane(display));

It works fine except that when new data is added though the append()
method, it is below the box. I then have to scroll down to see it.

Is there a way to auto-scroll the box so that all new data is shown
and the user can scroll UP to see the old data?

Thanks in advance!



Relevant Pages

  • HELP geometry settings
    ... I have a GUI that is driven by external data ... scrollbar, BUT I want each section to scroll independantly inthe ... individual section it also forces the canvas to grow in height ... to force the width of the enclosed frame to be the same. ...
    (comp.lang.tcl)
  • Re: Vertical scroll bar in GUI
    ... Simply how do I add a vertical scroll bar to a GUI? ... a child of the panel. ...
    (comp.soft-sys.matlab)
  • Re: Finding installed package files
    ... but a decent GUI MAN viewer would be a godsend. ... >> being able to drag the scroll bar in the web browser. ... There is a GUI ... > GUI tool you're talking about... ...
    (alt.os.linux.redhat)
  • Re: The Saddest of all Application Frameworks [was Re: Macro lambda list]
    ... >> Chez Kenny is that things like Petzold have no relevance. ... off my tail with the news that this is my third industrial-strength GUI ... scroll bars appear and disappear dynamically as window is resized (and ... after a cursor movement or editing action ...
    (comp.lang.lisp)
  • Re: Help: JScrollPane in a Java Swing GUI
    ... > I have a GUI that I programmed and one of the Panels in it contains a ... > JTextArea. ... I then have to scroll down to see it. ...
    (comp.lang.java.gui)