Results 1 to 2 of 2

Thread: Unable to initialize a combobox selection

Threaded View

  1. #1
    Join Date
    Aug 2004
    Location
    Atlanta, GA
    Posts
    129

    Default 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 at 04:46 AM.
    Randy

Similar Threads

  1. Replies: 6
    Last Post: Oct 14th, 2005, 01:47 PM
  2. Create binding for existing combobox
    By darabi in forum Swing
    Replies: 1
    Last Post: Oct 7th, 2005, 02:50 PM
  3. Beandoc crashing (on its samples!)
    By aaime in forum Container
    Replies: 17
    Last Post: Oct 7th, 2005, 07:21 AM
  4. PerformanceMonitorInterceptor
    By tnist in forum AOP
    Replies: 3
    Last Post: Aug 24th, 2005, 01:39 PM
  5. comboBox
    By georgey in forum Swing
    Replies: 1
    Last Post: Jun 10th, 2005, 01:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •