Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 97955 invoked from network); 27 May 2010 19:43:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 May 2010 19:43:15 -0000 Received: (qmail 96277 invoked by uid 500); 27 May 2010 19:43:14 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 96257 invoked by uid 500); 27 May 2010 19:43:14 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 96249 invoked by uid 99); 27 May 2010 19:43:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 May 2010 19:43:14 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tvolkert@gmail.com designates 74.125.83.54 as permitted sender) Received: from [74.125.83.54] (HELO mail-gw0-f54.google.com) (74.125.83.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 May 2010 19:43:08 +0000 Received: by gwj21 with SMTP id 21so400094gwj.13 for ; Thu, 27 May 2010 12:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=OYeTu4n6Q8ZcTJoqP30gXE9vYcYDLYRjbx/zf5J6vkw=; b=iSiFWCQ/HmAbkQmZoweqJr/Ck2vJH7fFFM7SVtv58BbqeG0ilsnay+GyibTk2YzPH8 OSBzizb6iBO5dqiSGSsfWMqEnNRB1iO55h30n2ExY0ynsjbnW42jvpK2ZAtFG5M4neI4 UhNMQnaIZc65SyUFTVMCVc0vWsPmTCjBiKwKY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=QOP3FDkpyAMbiCqLAonQ16M1Rz6Ejnr75J3UcrH43O0DQcmBdta02ZBzhM24n/jXG2 c6m49ABfzfecbotpu6vVr6L2vKS3/cCfvO/ai9OfLHhHlg0YQKFSUy/DzYuffPMmWvIb 4X2LR/fofEtHTBP0THbwwo4+/mqAWHsXXIbNE= MIME-Version: 1.0 Received: by 10.101.191.4 with SMTP id t4mr12376998anp.214.1274989367538; Thu, 27 May 2010 12:42:47 -0700 (PDT) Received: by 10.100.140.13 with HTTP; Thu, 27 May 2010 12:42:47 -0700 (PDT) In-Reply-To: <1272044313.00254616@192.168.2.228> References: <1272044313.00254616@192.168.2.228> Date: Thu, 27 May 2010 15:42:47 -0400 Message-ID: Subject: Re: ScrollPane question From: Todd Volkert To: user@pivot.apache.org Content-Type: multipart/alternative; boundary=001636c5c25158352d04879898ce X-Virus-Checked: Checked by ClamAV on apache.org --001636c5c25158352d04879898ce Content-Type: text/plain; charset=ISO-8859-1 Hi Patrick, I hope you were able to solve this, but in case you weren't, better late than never (I was out of commission for a month and a half) :-) There are two ways you could go with this: 1) Prepend the text to the text area, thus sidestepping the problem... 2) Manually scroll the scroll pane to the bottom after new text is added to the text area. The trick here is that immediately after the text has been added, the text area has not yet been validated and thus is as big as it needs to be (nor is the scroll pane's scrollable area). This means that you have to queue a callback (using ApplicationContext.queueCallback(Runnable)) to perform the scrolling (manually calling scrollPane.setScrollTop(...)). Cheers, -T On Fri, Apr 23, 2010 at 1:38 PM, Patrick Shea wrote: > Hi, I'm trying to redirect system out to a textarea withing a scollpane. I > got the textarea to fill with the System.out text but the ScrollPane is not > scrolling with the last entry and is always staying at the beginning of the > textarea. > > Is there a way to force the scrollpane to scroll to the bottom? > > Thanks > Patrick > > --001636c5c25158352d04879898ce Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Patrick,

I hope you were able to solve this, but in c= ase you weren't, better late than never (I was out of commission for a = month and a half) :-)

There are two ways you could= go with this:

1) Prepend the text to the text area, thus sidestepping= the problem...

2) Manually scroll the scroll pane= to the bottom after new text is added to the text area. =A0The trick here = is that immediately after the text has been added, the text area has not ye= t been validated and thus is as big as it needs to be (nor is the scroll pa= ne's scrollable area). =A0This means that you have to queue a callback = (using ApplicationContext.queueCallback(Runnable)) to perform the scrolling= (manually calling scrollPane.setScrollTop(...)).

Cheers,
-T

= On Fri, Apr 23, 2010 at 1:38 PM, Patrick Shea <patrick@ps1.net> wrote:
Hi, I'm trying to redirect system out to a textarea withing a scollpane= . I got the textarea to fill with the System.out text but the ScrollPane is= not scrolling with the last entry and is always staying at the beginning o= f the textarea.

Is there a way to force the scrollpane to scroll to the bottom?

Thanks
Patrick


--001636c5c25158352d04879898ce--