No subject
Sat Nov 12 19:29:10 PST 2005
on table selection (I could be wrong). However try listTable.repaint()
instead of revalidate(). =20
--__--__--
Message: 1
From: "Reinstein, Lenny" <Leonard.Reinstein at gs.com>
To: "'advanced-java at xcf.berkeley.edu'" <advanced-java at xcf.berkeley.edu>
Date: Thu, 5 Sep 2002 19:16:33 -0400=20
Subject: [Advanced-java] Selecting rows in JTable dynamically
I want to acomplish something that seemed very simple to me -- selecting
rows and chaning row selections in the JTable based on certain logic
real
time.=20
I want to continuously change row selections and want it to be visible
to
the user dynamically, as it happens.=20
However, the code below does not seem to work. If I execute the code
before
I add the JTable component, it works.=20
while(true)
{
int selection =3D getRowSelection(); // some business logic here
listTable.setRowSelectionInterval(selection , selection );
listTable.revalidate();
if(....) break;
}
Any ideas on what I can do here?
Thanks.
-Lenny
More information about the Advanced-java
mailing list