Help: JScrollPane in a Java Swing GUI
From: DaVinci (DaVinci_at_history.com)
Date: 10/27/04
- Next message: Paul Lutus: "Re: Help: JScrollPane in a Java Swing GUI"
- Previous message: Paul Lutus: "Re: Cannot set "layout" property java.lang.illegalArgumentException"
- Next in thread: Paul Lutus: "Re: Help: JScrollPane in a Java Swing GUI"
- Reply: Paul Lutus: "Re: Help: JScrollPane in a Java Swing GUI"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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!
- Next message: Paul Lutus: "Re: Help: JScrollPane in a Java Swing GUI"
- Previous message: Paul Lutus: "Re: Cannot set "layout" property java.lang.illegalArgumentException"
- Next in thread: Paul Lutus: "Re: Help: JScrollPane in a Java Swing GUI"
- Reply: Paul Lutus: "Re: Help: JScrollPane in a Java Swing GUI"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|