How do you make the comboBox
options match numeric indexes? Example, in my database I only save numbers from 1 to 8. And in the application I show my user names, I want those names to match those numbers. I was trying to use substrings
to do this.
1 - > A
2 - > B
3 - > C
4 - > D
5 - > E
6 - > F
7 - > G
8 - > H
fill in combo with "names"
meuCombo.getItems().addAll("A", "B", "C", "D", "E", "F", "G", "H");
pojo.setDoPojo(meuCombo.getTypeSelector().substring(1 , 2))
Note: I've just posted this snippet of code just to illustrate, I just want a targeting of what to do, I'm not asking for anything ready.