Article View: borland.public.jbuilder.java.swing
Article #8963Re: JScrollPane - Ignore this!!!
From: Vu Nguyen
Date: Fri, 16 Jun 2000 00:00
Date: Fri, 16 Jun 2000 00:00
31 lines
1932 bytes
1932 bytes
Sure, here it is: demoTable.scrollRectToVisible(demoTable.getCellRect(demoTable.getSelectedRow(),0,false)); Yes, simple as that!! -Vu Nguyen Henk van Voorthuijsen wrote: > Would you be so kind to enlighten us how you did it? > > Henk > > Vu Nguyen <vu972@hotmail.com> wrote in message > news:58BF6F5C4397D613.258BC3038D2291DB.117390DDE638C100@lp.airnews.net... > > Ignore this... I've got it!!! > > > > Vu Nguyen wrote: > > > > > Hi, > > > I have a JTable inside a JScrollPane. I also have a button called "END". > > > I want to do this: > > > whenever I click this button the last row of the table will be selected > > > and the scroll bar will scroll down at the bottom of the table. > > > Right now, I can do the selection but there's still no way for me to > > > control the scroll bar to make it scrolls down to the bottom of the > > > table to make the selected row visible... > > > Please help!!! > > > -Thanks. > >
Technical Details
Message-ID:
<5C84098B0F75CEFC.7DC68DD504313E1E.B81E53D74DFE6DB9@lp.airnews.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<1878410C303D4E0B.B186783C93ACEA98.A28621D9BE94A544@lp.airnews.net> <58BF6F5C4397D613.258BC3038D2291DB.117390DDE638C100@lp.airnews.net> <8hq7te$7cb$1@porthos.nl.uu.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,56efd0a36e82b1a7 X-Google-Attributes: gid111d45,public From: Vu Nguyen <vu972@hotmail.com> Subject: Re: JScrollPane - Ignore this!!! Date: 2000/06/16 Message-ID: <5C84098B0F75CEFC.7DC68DD504313E1E.B81E53D74DFE6DB9@lp.airnews.net> X-Deja-AN: 635367732 Content-Transfer-Encoding: 7bit References: <1878410C303D4E0B.B186783C93ACEA98.A28621D9BE94A544@lp.airnews.net> <58BF6F5C4397D613.258BC3038D2291DB.117390DDE638C100@lp.airnews.net> <8hq7te$7cb$1@porthos.nl.uu.net> X-Orig-Message-ID: <394A47A8.FABDE90B@hotmail.com> To: Henk van Voorthuijsen <hvvoorth@blom.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii NNTP-Posting-Time: Fri Jun 16 10:31:10 2000 Organization: Airnews.net! at Internet America NNTP-Proxy-Relay: library2.airnews.net Mime-Version: 1.0 Abuse-Reports-To: abuse at airmail.net to report improper postings Newsgroups: borland.public.jbuilder.java.swing