Re: Repost: JTable - selected row in large table is not "visible"
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Wed, 19 Oct 2005 03:36:54 GMT
On Tue, 18 Oct 2005 13:26:25 +0200, Branko Kaucic
<branko.kaucic@xxxxxxxx> wrote or quoted :
> grid.getSelectionModel().setSelectionInterval(i,i)
You just want to make sure those selected rows are as visible as
possible, which might be impossible if the user has selected more than
a screenful.
You might want to simulate how the user would do it, first making the
first row visible then the last.
Keep in mind that your JTable lives in a JScrollPane. Perhaps someone
will come up with a better, way, but you could use
JScrollPane.getVerticalScrollBar().setValue().
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.
- References:
- JTable - selected row in large table is not "visible"
- From: Branko Kaucic
- Repost: JTable - selected row in large table is not "visible"
- From: Branko Kaucic
- JTable - selected row in large table is not "visible"
- Prev by Date: Re: JAVA as C (or C++) Front End
- Next by Date: Re: Digital waveform display
- Previous by thread: Re: Repost: JTable - selected row in large table is not "visible"
- Next by thread: expanding a Jtree...
- Index(es):
Relevant Pages
|