CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2003
    Location
    Hyderabad,India
    Posts
    486

    Nesting of combo boxes or similar one

    Hi friends.

    have been away from forum for a long time.
    :-(
    sorry.

    well, i am reading the requirements document which contains a requirement which says of some nesting effect of combo box values.

    ok let me put my need like this.

    Code:
    say i have a JCombobox with the following items
    
    item11
    item12
    item13
    item14
    item21
    item22
    item31
    item32
    item41
    
    
    Now i need to display  this combo box values like this
    
    
    Item1
            item11
            item12
            item13
            item14
    Item2
            item21
            item22
    Item3
            item31
            item32
    Item4
            item41
    Looks like i need to use the combo box elements to be some kind of popup menu items..

    Dont know how to go about it. just doing googling.

    Please do let me know if you have any thoughts?


    Thanks
    Harinath
    Thanks n Regards
    Harinath Reddy
    Learn Hello World Program
    A good scientist is a person with original ideas. A good engineer is a person who makes a design that works with as few original ideas as possible. There are no prima donnas in engineering. - Freeman Dyson

  2. #2
    Join Date
    Jun 2005
    Posts
    33

    Thumbs up Re: Nesting of combo boxes or similar one

    Hi,
    Why dont you try having two combo boxes.

    1. Initially populate all values in first combo.
    2. As per the value selected in this combo, populate the items in the second combo.

    Will this idea help you?

    Happy coding!!!

  3. #3
    Join Date
    Apr 2003
    Location
    Hyderabad,India
    Posts
    486

    Re: Nesting of combo boxes or similar one

    No, I wont be able to use that one. becuase i have to changes in existing UI.
    if its a new I then i could have thought of that option.
    There must be some popup menu kind of option isnt it.
    Thanks n Regards
    Harinath Reddy
    Learn Hello World Program
    A good scientist is a person with original ideas. A good engineer is a person who makes a design that works with as few original ideas as possible. There are no prima donnas in engineering. - Freeman Dyson

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured