If you want to separate the value and text that are shown in the combobox you have to create an object that holds both values.
The code below shows how to do this. Just create objects of this class and add them to the combobox. With getId() you get the ID of the object and with getDescription() you get the text. The toString() method makes sure that the description will be the text shown in the combobox.
class Item {
private int id;
private String description;
public Item(int id, String description) {
this.id = id;
this.description = description;
}
public int getId() {
return id;
}
public String getDescription() {
return description;
}
public String toString() {
return description;
}
}