Results 1 to 3 of 3
  1. #1
    sandeep43 is offline Member
    Join Date
    May 2011
    Rep Power

    Default How to assign Single image to each value in combo box

    Hi All,

    I have many values in my combo box and it displays properly, i want to assign image to each value and it is same image not different one.

    I tired doing it, but my image was displayed as string rather than icon
    something like Rectangular 16.0x16.0


  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Washington, DC
    Rep Power


    If you want help, you'll have to provide an SSCCE demonstrating what you tried.

    Recommended reading: How to Use Combo Boxes (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

  3. #3
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Richmond, Virginia
    Blog Entries
    Rep Power

Similar Threads

  1. Assign a value to a final variable
    By yma16 in forum New To Java
    Replies: 6
    Last Post: 05-08-2011, 04:27 AM
  2. dynamically populate the city combo box based on the values of state combo +ajax+jsp
    By sandy1000 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 12-29-2010, 11:00 AM
  3. Assign it, or call it again,, (again!)
    By sonny in forum New To Java
    Replies: 4
    Last Post: 03-17-2010, 03:47 AM
  4. creation of one combo box form another combo box
    By er.tyagigaurav in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 12-09-2008, 04:14 PM
  5. Replies: 0
    Last Post: 01-08-2008, 06:29 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