?
Solved

provide excel like filtering JTable Java Swing

Posted on 2004-08-25
6
Medium Priority
?
2,023 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 40 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 140 total points
ID: 11892036
0
 
LVL 35

Assisted Solution

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

http://www.publicobject.com/glazedlists/
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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 320 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

840 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