🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #7980

Re: JTable scrolling related question

#7980
From: Greg Hamer
Date: Fri, 17 Nov 2000 00:00
13 lines
954 bytes
I believe that
jScrollPane.getViewport().scrollRectToVisible(jTable.getCellRect(particularR
ow,0,true))
will do it.

"Stan Shargorodskiy" <sshargor@netrisk.com> wrote in message
news:3A1583E1.8FD78A76@netrisk.com...
> Is there any way to programmatically scroll jtable object to a
> particular row? (Assuming, of course, that jtable is display through a
> JScrollPane object).
>
> Thank you in advance,
>
Technical Details
Message-ID: <3a15c300_2@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3A1583E1.8FD78A76@netrisk.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,1fc5e943f0feb2d4
X-Google-Attributes: gid111d45,public
From: "Greg Hamer" <ghamer@troikanetworks.com>
Subject: Re: JTable scrolling related question
Date: 2000/11/17
Message-ID: <3a15c300_2@dnews>
X-Deja-AN: 694932656
References: <3A1583E1.8FD78A76@netrisk.com>
X-Trace: 17 Nov 2000 15:45:04 -0800, 12.31.172.193
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: borland.public.jbuilder.java.swing
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700