🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JTABLE&&SORTING

#11112
From: peter
Date: Thu, 08 Jul 1999 00:00
14 lines
1250 bytes
Hi everybody - here is my problem. I have implemented sorting on JTable.
Unfortunately this change is only graphical - but it doesn't make any
change to
 structure (array or vector) which was used to create table model...now
I am filling model with array of records comming from server...then I
sort ..then I click
 on row...getting integer to identify selected
row(table.getSelectedRow()) and want to take this row and send it
somewhere else...I use selected row to get it
 from table model (getValue(row,column)) unfortunately this correspond
to the row which was there before sorting took place..I mean sorting
didn't change
 array inside table model...therefore I am sending incorrect
row....anybody has any remedy to this???...thanx...Pete
Technical Details
Message-ID: <3784BC67.8358E909@terren.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,5267c1252c085083,start
X-Google-Attributes: gid111d45,public
From: peter <peter@terren.com>
Subject: JTABLE&&SORTING
Date: 1999/07/08
Message-ID: <3784BC67.8358E909@terren.com>
X-Deja-AN: 498592976
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