I'm trying to use a JDialog box that has a search text field that as text is entered, it shortens a list to those that match. On this list I would like to display each line with a checkbox that can be selected. I might also want the ability for it to function like a select all list where Ctrl + Click on the line would select the item and check its box. How do I get this done?
+1
A:
I would use a JTable with two columns. The first column can be your check box and the second column could be the text.
Read the section from the Swing tutorial on "How to Use Tables" in particular the part on Sorting and Filtering for an example.
camickr
2010-06-29 19:38:28