-
Enhancement
-
Resolution: Unresolved
-
P5
-
None
-
5.0
-
Fix Understood
-
x86
-
windows_xp
Name: sh120115 Date: 01/15/2004
A DESCRIPTION OF THE REQUEST :
Scouring the various Java forums on the web, I see I share a common need in the JFC classes: a two column JComboBox.
I have implemented this myself by hiding the standard popup within JComboBox and putting a two-column JTable on a panel in its place, but it wasn't trivial, nor ideal.
Basically, the functionality I want needs to be able to populate the two columns of data with arrays of data, and be able to programatically choose which column's data should display in the combo's textfield when the popup collapses.
This is a common feature in our data entry apps, where the combo popup may display person titles as an example the first column showing "Mstr Sgt/Mrs" and the second column showing it as "Master Sergeant/Mrs" and when the user makes a choice and collapsing the popup, the only the first column's data showing in the combo. There are other cases such as states and state abbreviations, etc. I can imagine situations where the desired results is to show both columns of data in the collapsed combo.
So, in summary, although I've proved to myself that I could create such a beast in Java there wasn't much library support to create it and a well-thought out design to support such functionality would be gratefully appreciated.
JUSTIFICATION :
Common need in data entry applications.
(Incident Review ID: 233519)
======================================================================