I'm trying something similar to what was posted at
http://forum.springframework.org/sho...ighlight=combo
and am trying to set an initial selection:
yet when it displays, an empty selection appears. The original list items are contained in the pull down.Code:JComboBox typeSelector = getFormModel().createBoundComboBox( "type", new String[] { "animal", "vegetable", "mineral"}); typeSelector.setSelectedIndex(0); // also tried setSelectedItem("animal")
Has anyone else had this issue?


Reply With Quote