🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages Started by Salvador Huertas Fri, 16 Sep 2005 09:33
Scroll JScrollPane to begining.
#361
Author: Salvador Huertas
Date: Fri, 16 Sep 2005 09:33
6 lines
997 bytes
Hi, friends
How can I scroll a jScrollPane to position=0 (vertical) programaticaly (by
code). Inside de scroll pane there is a jTextArea component.

Thanks in advance!!
Salvador Huertas.
Re: Scroll JScrollPane to begining.
#362
Author: Tony
Date: Sat, 17 Sep 2005 06:25
15 lines
1249 bytes
jScrollPane.getViewport().setViewPosition(new Point(0,0))

Cheers.
Tony.

"Salvador Huertas" <none@none> wrote in message 
news:432a901c@newsgroups.borland.com...
> Hi, friends
> How can I scroll a jScrollPane to position=0 (vertical) programaticaly (by
> code). Inside de scroll pane there is a jTextArea component.
>
> Thanks in advance!!
> Salvador Huertas.
>
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads