Solved

Building a Table with Filters

Posted on 2004-10-19
2
178 Views
Last Modified: 2010-03-31
I have four combo boxes, an add item button, a delete item button and a list box. When the add item is pushed I read the four
combo boxes and format a string to add to the list box. This simplistic approach is not very user friendly, I would like to build a
table of four columns and be able to filter each column by the parameters that I specify.

The four Combo Boxes have drop downs that give the user available choices, I have named the Combo Boxes DEVICES, PARAMETER,
VALUE and COUNT.

My columns would consist of the following HEADERS: THE CHOICES FOR EACH COLUMN will come from the combo boxes.
DEVICES          PARAMETER       VALUE          COUNT

Can someone point me to examples that do something similar, or make suggestions on the best way to implement this.

thanks
 
0
Comment
Question by:hugoitt
2 Comments
 
LVL 4

Accepted Solution

by:
JK2429 earned 500 total points
ID: 12349845
0
 
LVL 9

Expert Comment

by:Ovi
ID: 12356934
Filtering a ListModel (can be easily expanded to TableModel):
http://www-106.ibm.com/developerworks/java/library/j-filters/

An tutorial of filtering Collections to be used if your table model is using them:
http://www.javaworld.com/javaworld/jw-10-2004/jw-1018-filter_p.html
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

760 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

19 Experts available now in Live!

Get 1:1 Help Now