I really get lost on how to use comboBox as FormModel in a form. The following is what I want to do, and I believe it's a common task in everyday programing:
I have a class, name it MyClass:
public class MyClass{
public static int final TYPE1=1;
public static int final TYPE1=2;
public static int final TYPE1=3;
private int type;
// other fields....
}
In a Form, I want to display the "type" as a combobox to let the user to choose one. After inspecting several classes on PropertyEditor, PropertyEditorRegistry, ComboBoxAdaptor, ValueModel, FormModel, Form, AbstractForm, DefaultFormModel, I am still lost on how can I get start on implement it.


Reply With Quote