Solved

provide excel like filtering JTable Java Swing

Posted on 2004-08-25
6
1,689 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
matchUp  challenge 9 71
scoreUp challenge 14 48
count11 challenge 6 47
Unable to start eclipse ? 17 84
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
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 will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This video teaches viewers about errors in exception handling.

706 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

18 Experts available now in Live!

Get 1:1 Help Now