Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Image in JComboBox  RSS feed

 
merwin pinto
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
how can i display images in a combobox? instead of text ..i want to have icons .... something like setting icons to a JTabbedPane
thanks a lot
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By writing a custom renderer. Here is the section of Sun's Java Tutorial which explains how to do this.

I'm going to move this thread to our Swing/AWT forum for any further discussion.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!