Announcement Announcement Module
Collapse
No announcement yet.
Unable to initialize a combobox selection Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unable to initialize a combobox selection

    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:
    Code:
    JComboBox typeSelector = getFormModel().createBoundComboBox( 
    "type", new String[] { "animal", "vegetable", "mineral"});
    typeSelector.setSelectedIndex(0);  // also tried setSelectedItem("animal")
    yet when it displays, an empty selection appears. The original list items are contained in the pull down.

    Has anyone else had this issue?
    Last edited by robyn; May 19th, 2006, 05:46 AM.

  • #2
    Additional info. . . If I duplicate the control on another form, the one on the second form works as expected. Adding it to the formbuilder twice on the same form doesn't work, however. :x

    Comment

    Working...
    X