🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #10058

JTable - part IV the return

#10058
From: Alexandre Reis
Date: Mon, 29 Nov 1999 00:00
33 lines
1603 bytes
Here I am again with another JTable question.

I have a JTable that looks like this:

Query Table

	Attributes		|	Values
------------------------------------------------
1	patient_name		|	John Doe
2	patient_address		|	
3	patient_id		|
4	patient_birth_date	|

That is not exactly what it looks like but you got the idea.

The attributes fields will later become the header of a results table
and the values are the constraints for a query.

I allow the user to move the fields up and down.  My problem is if the
user does a multiselect to move the selected rows up or down I want the
highlighted fields to be highlighted after the action is performed but I
have not been able to do that.  After the action is performed, I can
only highlight one field, which is usually the last row selected.

Is there a way we can multiselect rows on a JTable?

Let's say I want to move rows 2 (patient_address) and 4
(patient_birth_date) up.  After the action is performed, I want rows 1
(patient_address) and 3 (patient_birth_date) to be selected.

Thanks in advance.

Alex.
Technical Details
Message-ID: <3842E289.51A7ADED@mitra.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,f0f2dc087445752a,start
X-Google-Attributes: gid111d45,public
From: Alexandre Reis <areis@mitra.com>
Subject: JTable - part IV the return
Date: 1999/11/29
Message-ID: <3842E289.51A7ADED@mitra.com>
X-Deja-AN: 554550696
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing