Article View: borland.public.jbuilder.java.swing
Article #8530Re: set selected row in jtable
From: Andreas Schnell
Date: Mon, 14 Aug 2000 00:00
Date: Mon, 14 Aug 2000 00:00
15 lines
994 bytes
994 bytes
"ross" <rperry@commonvision.com> schrieb im Newsbeitrag news:399468c1$1_2@dnews... > Can anyone tell me how to set the selected row of a JTable? > > I have tried the following where rowSm is the selection model without > success > > rowSm.clearSelection(); > rowSm.setAnchorSelectionIndex(0); > rowSm.setLeadSelectionIndex(0); Try setRowSelectionIntervall from JTable Andreas Schnell
Technical Details
Message-ID:
<399791ce_2@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<399468c1$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,52a6b83341778cd6 X-Google-Attributes: gid111d45,public From: "Andreas Schnell" <Andreas.Schnell@innovations.de> Subject: Re: set selected row in jtable Date: 2000/08/14 Message-ID: <399791ce_2@dnews> X-Deja-AN: 658024982 References: <399468c1$1_2@dnews> X-Original-NNTP-Posting-Host: 207.105.83.65 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing