How do I have a JComboBox
with a label viewable to the end user that applies a different value/data type behind the scenes?
I've built a basic calculator for my workplace. It calculates finished roll size and diameter based on length, material thickness, and core size. If I use all text fields and stick to int/double data types it's easy and works well. However dealing with sales people etc., that do not know material thicknesses, I want to switch to a combo box for those entries.
For example I want the first combo box item to say "Thermal transfer Permanent" but I want the thickness value of .005 to be entered into my math behind the scenes, and my second item would be "Thermal Direct Permanent" but I want .006 to be entered into my math. There are many more materials and thicknesses that will be added.