Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

provide excel like filtering JTable Java Swing

Posted on 2004-08-25
6
Medium Priority
?
1,977 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

636 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