Article View: borland.public.jbuilder.java.swing
Article #8848Re: JTable's setRowSelectionInterval()
From: John P. McGrath
Date: Mon, 03 Jul 2000 00:00
Date: Mon, 03 Jul 2000 00:00
17 lines
1037 bytes
1037 bytes
On Sat, 01 Jul 2000 14:08:47 -0500, Nothing to do with Microshaft. wrote: > Works fine if the selected row is in the viewport, but > it does not cause the newly selected row to shift the > table within the viewport to remain visible. > > What's the easiest way to get the JScrollPane to always > show the selected row? The following will ensure that the first cell in the selected row is visible in the enclosing viewport. scrollRectToVisible( getCellRect( getSelectedRow(), 0, true ) ); -- John P. McGrath <JPMcGrath@fast.net> <jpm@nscs.fast.net>
Technical Details
Message-ID:
<MPG.13cb0d52576100a6989a0c@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<395E41BF.B9427386@hotmail.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,5783662b4813b412 X-Google-Attributes: gid111d45,public From: John P. McGrath <JPMcGrath@fast.net> Subject: Re: JTable's setRowSelectionInterval() Date: 2000/07/03 Message-ID: <MPG.13cb0d52576100a6989a0c@forums.borland.com> X-Deja-AN: 642071734 References: <395E41BF.B9427386@hotmail.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing