Multiple cells selection after research

Hi to everyone,

i'm trying to create a function word-find into a JTable (like the fuction - find on this page CTRL F).

Now my method, when there are two or more same objects in the table, selects(with a differrent cell background) only the last one object find.

How can I select all the right elements found?

I hope I've been enough clear.

Thanks a lot for the help

Jas

[414 byte] By [JasGenoa] at [2007-10-3 8:42:00]
# 1
This might not be an option but check out swing labs they have table named JXTable that has the find functionally built in as well as highlighting, sorting, and filtering.
zadoka at 2007-7-15 3:50:23 > top of Java-index,Desktop,Core GUI APIs...
# 2
JIDE also provides this (it's not free though).
itchyscratchya at 2007-7-15 3:50:23 > top of Java-index,Desktop,Core GUI APIs...
# 3
Thanks for the suggestion, but in this case is not the best solution, because I would have to modify several classes.This function would be only an added to one already existing application that contain many classes.Wouldn't be an other possibility/solution?
JasGenoa at 2007-7-15 3:50:23 > top of Java-index,Desktop,Core GUI APIs...
# 4

> Thanks for the suggestion, but in this case is not

> the best solution, because I would have to modify

> several classes.

> This function would be only an added to one already

> existing application that contain many classes.

Well the JXTable extends JTable, so the change would be minor

> Wouldn't be an other possibility/solution?

Other than using something already created by someone else?

zadoka at 2007-7-15 3:50:23 > top of Java-index,Desktop,Core GUI APIs...
# 5
I have only posted a question. I haven't say that I would the final solution!I wanted only suggestions.But thank you for your availability.
JasGenoa at 2007-7-15 3:50:23 > top of Java-index,Desktop,Core GUI APIs...
# 6
Never tried it but the changeSelection(...) method has a couple of parameter that indicate whether to extend the selection of start a new selection. Don't know if it works on a cell selection or only row selection.
camickra at 2007-7-15 3:50:23 > top of Java-index,Desktop,Core GUI APIs...