OptionI option;
- JComboBox<String> val;
+ JComboBox<Object> val;
/**
* Constructs and adds labels and controls to the panel for one Option
/*
* drop-down list of choice options (if applicable)
*/
- JComboBox<String> choicebox;
+ JComboBox<Object> choicebox;
/*
* radio buttons as an alternative to combo box
* @param opt
* @return
*/
- protected static JComboBox<String> buildComboBox(OptionI opt)
+ protected static JComboBox<Object> buildComboBox(OptionI opt)
{
- JComboBox<String> cb = null;
+ JComboBox<Object> cb = null;
List<String> displayNames = opt.getDisplayNames();
if (displayNames != null)
{
- cb = JvSwingUtils.buildComboWithTooltips(displayNames,
+ List<Object> displayNamesObjects = new ArrayList<>();
+ displayNamesObjects.addAll(displayNames);
+ cb = JvSwingUtils.buildComboWithTooltips(displayNamesObjects,
opt.getPossibleValues());
}
else