🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTable: ensureCellVisible

#12210
From: Stefan Willfahrt
Date: Sat, 13 Feb 1999 00:00
23 lines
1032 bytes
Hi!

Try something like

table.scrollRectToVisible(table.getCellRect(row,column,true));

sometimes I have to call this method twice to get it to work correctly
... but generally this works for me!

Bye
Steve

George Tryfon wrote:

> Can I scroll the JTable inside the JScrollPane
> so to make a specified cell visible ?
>
> The JList has "ensureIndexIsVisible(int)", what about JTable ?
>
> Thank you in advance
>
> George Tryfon
> george@compucon.gr
Technical Details
Message-ID: <36C59F79.33DF25D4@okay.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7a0lc6$mtt13@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,6f3c2da508c22e3d
X-Google-Attributes: gid111d45,public
From: Stefan Willfahrt <willfahrt@okay.net>
Subject: Re: JTable: ensureCellVisible
Date: 1999/02/13
Message-ID: <36C59F79.33DF25D4@okay.net>
X-Deja-AN: 443995284
Content-Transfer-Encoding: 7bit
References: <7a0lc6$mtt13@forums.borland.com>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Reply-To: sw@debis.com
Newsgroups: borland.public.jbuilder.java.swing