No subject


Sat Nov 12 19:29:10 PST 2005


on table selection (I could be wrong). However try listTable.repaint()
instead of revalidate().  

--__--__--

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 
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. 
I want to continuously change row selections and want it to be visible
to
the user dynamically, as it happens. 
However, the code below does not seem to work. If I execute the code
before
I add the JTable component, it works. 

while(true)
{
	int selection = getRowSelection(); // some business logic here
	listTable.setRowSelectionInterval(selection , selection );
	listTable.revalidate();
	if(....) break;
}

Any ideas on what I can do here?
Thanks.

-Lenny

_______________________________________________
Advanced-java mailing list
Advanced-java at lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java
_______________________________________________
Advanced-java mailing list
Advanced-java at lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java




More information about the Advanced-java mailing list