• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2112
  • Last Modified:

provide excel like filtering JTable Java Swing

Hi
I want to provide excel like filters in JTable.. like comboboxes in JTable header which acts as filters for the column values...

Any bright ideas or solutions available.. Please help.

thanks
0
ANSHU2004
Asked:
ANSHU2004
4 Solutions
 
CEHJCommented:
Not that trivial to implement. You have to act collection-wise on the TableModel. But certainly possible
0
 
TimYatesCommented:
0
 
TimYatesCommented:
And this looks quite cool too, and seems to do what you want:

http://www.publicobject.com/glazedlists/
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
ANSHU2004Author Commented:
Filtering of list is ok.. I need to put combobox in table header and tie filtering with that..
0
 
objectsCommented:
heres an example showing howe to put your combo in header:

http://www.objects.com.au/java/examples/swing/EditableComboTableHeader.do

try that with the filtering stuff tim posted.
0
 
CEHJCommented:
8-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now