Article View: borland.public.jbuilder.java.swing
Article #10761Selection problem in JTable
From: Alex
Date: Wed, 18 Aug 1999 00:00
Date: Wed, 18 Aug 1999 00:00
13 lines
989 bytes
989 bytes
Hi, I wonder how I can let the user select a single cell or a couple of cells of a JTable. When I click on the JTable a whole row is selected. I tried several things (changing the selectionModel and the selectionMode) but I didn�t succeed. Then I looked at sun�s website (http://java.sun.com/docs/books/tutorial/ui/swing/table.html) and tried the example "SimpleTableSelectionDemo.java" I found there. But I had exactly the same problem with it. Thank you very much, Alex.
Technical Details
Message-ID:
<7pcn4r$2912@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,281297e5034a9cd5,start X-Google-Attributes: gid111d45,public From: "Alex" <alexbged@linux.zrz.tu-berlin.de> Subject: Selection problem in JTable Date: 1999/08/18 Message-ID: <7pcn4r$2912@forums.borland.com> X-Deja-AN: 513970792 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing