ASAP: setRowSelectionInterval doesnot call valueChanged ?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sam_pitroda
Posted On:   Monday, January 7, 2002 10:16 AM

I jave JTable with list selection model. When I call
JTable.setRowSelectionInterval, valueChanged listener doesnot
get called ? why ? what shall I do so that some listener is called
when I select row using setRowSelectionInterval.

Re: ASAP: setRowSelectionInterval doesnot call valueChanged ?

Posted By:   Jon_Benton  
Posted On:   Tuesday, January 8, 2002 03:06 PM

Hm...well, you could call the listeners yourself when you call setRowSelectionInterval.


But that doesn't answer the question, which is an interesting one. Intuitively, you'd expect valueChanged to get pinged when setRowSelectionInterval is called. Perhaps the designers didn't want to assume how you wanted your application to behave when you called setRowSelectionInterval.


Jon

About | Sitemap | Contact