Article View: borland.public.jbuilder.java.swing
Article #10673Re: Selection problem in JTable
From: Ernesto Gonzalez
Date: Wed, 18 Aug 1999 00:00
Date: Wed, 18 Aug 1999 00:00
8 lines
824 bytes
824 bytes
Create the table with your model: JTable myTable = new JTable( myModel ); Then change the table selection to: myTable.setCellSelectionEnabled(true); myTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION );
Technical Details
Message-ID:
<7pf52k$2kk21@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7pcn4r$2912@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,281297e5034a9cd5 X-Google-Attributes: gid111d45,public From: "Ernesto Gonzalez" <eglez@bellsouth.net> Subject: Re: Selection problem in JTable Date: 1999/08/18 Message-ID: <7pf52k$2kk21@forums.borland.com> X-Deja-AN: 514354430 References: <7pcn4r$2912@forums.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Reply-To: "Ernesto Gonzalez" <eglez@bellsouth.net> Newsgroups: borland.public.jbuilder.java.swing