JComboBox ComboBoxRenderer Request for Assistance

Discussion in 'Java' started by pitoniakm@msn.com, Aug 29, 2005.

  1. Guest

    greetings,

    I would like to have a jComboBox on my toolbar that displays only a
    icon for any selected combobox items (which will be String paths) when
    not expanded, and only display the path without the icon in the list
    when expanded. It appears that ComboBoxRenderer only allows for both
    selected and list items to have icons and text, or just text, but not a
    mix. Has anyone done this? A code snippet would be greatly appreciated
    if so.

    Many Thanks,

    mp
     
    , Aug 29, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian Birtle
    Replies:
    2
    Views:
    2,615
    John Saunders
    Oct 16, 2003
  2. Manoj Nair
    Replies:
    0
    Views:
    1,610
    Manoj Nair
    Sep 12, 2003
  3. Ike

    Objects in a JComboBox

    Ike, Sep 13, 2003, in forum: Java
    Replies:
    3
    Views:
    10,752
  4. Sudarshan Raghavan

    JComboBox limit

    Sudarshan Raghavan, Sep 29, 2003, in forum: Java
    Replies:
    2
    Views:
    705
    nielinjie
    Sep 29, 2003
  5. f
    Replies:
    1
    Views:
    5,113
    Steve Claflin
    Oct 8, 2003
  6. Eben Upton
    Replies:
    0
    Views:
    515
    Eben Upton
    Jul 13, 2004
  7. Jimmy
    Replies:
    0
    Views:
    576
    Jimmy
    Oct 15, 2004
  8. frankrentef
    Replies:
    1
    Views:
    423
    coldpizza
    Feb 20, 2009
Loading...