I have the following Address object
can someone point me to an example of how to create a Form where it has a ComboBox with something like the State object (any object will do)?
I have no problems creating one where ComboBox has only a string, but can’t get it to work with an object.
Thank You
Peter
public class Address {
private String street;
private State state;
public State getState() {
return state;
}
public void setState(State state) {
this.state = state;
}
public String getStreet() {
return street;
}
public void setStreet(String street) {
this.street = street;
}
}
public class State {
private String id;
private String name;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}