Article View: borland.public.jbuilder.java.swing
Article #9943Re: How to programatically select a row in JTable. Please HELP
From: Greg Hamer
Date: Wed, 15 Dec 1999 00:00
Date: Wed, 15 Dec 1999 00:00
15 lines
1002 bytes
1002 bytes
jTable.getSelectionModel().setSelectionInterval(startingRow,endingRow); where startingRow and endingRow are type int, and the first row of the table is 0. Imran Hussain wrote: > Hi, > I need to programatically change the selected row in a JTable. I > searched the API docs but could not find a function like setSelection or > setCurrentRow. > > Could someone please help me out. > > Thanks, > Imran.
Technical Details
Message-ID:
<3857CEFA.DB0C015D@borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3857C1D4.6A225AE1@imranweb.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,3e1af3c9adc5980 X-Google-Attributes: gid111d45,public From: Greg Hamer <ghamer@borland.com> Subject: Re: How to programatically select a row in JTable. Please HELP Date: 1999/12/15 Message-ID: <3857CEFA.DB0C015D@borland.com> X-Deja-AN: 561035426 Content-Transfer-Encoding: 7bit References: <3857C1D4.6A225AE1@imranweb.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing