Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / October 2004

Tip: Looking for answers? Try searching our database.

Help: JScrollPane in a Java Swing GUI

Thread view: 
DaVinci - 27 Oct 2004 21:31 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!
Paul Lutus - 27 Oct 2004 22:45 GMT
> Hello,
>
[quoted text clipped - 8 lines]
> 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?

How about accessing the public archives first?

groups.google.com "JScrollPane bottom": 912 hits

Signature

Paul Lutus
http://www.arachnoid.com

da Vinci - 28 Oct 2004 03:05 GMT
>How about accessing the public archives first?
>
>groups.google.com "JScrollPane bottom": 912 hits

My first thought was to say thanks for the kindness. But then I
realize you are right and I didnt do my research first. I looked all
over Sun's website for a solution and couldnt find one. I did not know
about groups.google.com.... so you have given me a powerful tool by
suggesting it.

So, I do thank you for the tools to ensure I do my research first.

B/R/
Andrew Thompson - 28 Oct 2004 03:35 GMT
> ..So, I do thank you for the tools to ensure I do my research first.

You will go far.   :-)

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane

Paul Lutus - 28 Oct 2004 05:35 GMT
>>How about accessing the public archives first?
>>
[quoted text clipped - 7 lines]
>
> So, I do thank you for the tools to ensure I do my research first.

Yours is a very classy reply, and I am sincerely happy to have been able to
help.

Signature

Paul Lutus
http://www.arachnoid.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.