Article View: borland.public.jbuilder.java.swing
Article #8522set selected row in jtable
From: ross
Date: Fri, 11 Aug 2000 00:00
Date: Fri, 11 Aug 2000 00:00
8 lines
782 bytes
782 bytes
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);
Technical Details
Message-ID:
<399468c1$1_2@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,52a6b83341778cd6,start X-Google-Attributes: gid111d45,public From: "ross" <rperry@commonvision.com> Subject: set selected row in jtable Date: 2000/08/11 Message-ID: <399468c1$1_2@dnews> X-Deja-AN: 657303077 X-Original-NNTP-Posting-Host: 207.105.83.65 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing