Solved

provide excel like filtering JTable Java Swing

Posted on 2004-08-25
6
1,731 Views
Last Modified: 2008-02-01
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
Comment
Question by:ANSHU2004
6 Comments
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 20 total points
ID: 11892022
Not that trivial to implement. You have to act collection-wise on the TableModel. But certainly possible
0
 
LVL 35

Assisted Solution

by:TimYates
TimYates earned 70 total points
ID: 11892036
0
 
LVL 35

Assisted Solution

by:TimYates
TimYates earned 70 total points
ID: 11892049
And this looks quite cool too, and seems to do what you want:

http://www.publicobject.com/glazedlists/
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:ANSHU2004
ID: 11892178
Filtering of list is ok.. I need to put combobox in table header and tie filtering with that..
0
 
LVL 92

Accepted Solution

by:
objects earned 160 total points
ID: 11898076
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
 
LVL 86

Expert Comment

by:CEHJ
ID: 11915039
8-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Eclipse IDE - Cannot copy/paste from console output 8 132
JAVA part two 5 58
compre toata in where clue oracle 4 57
java 8 lambda expresssions exception handling 3 75
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
The viewer will learn how to implement Singleton Design Pattern in Java.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now