• Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding Images in JList?

 
Sachin Dere
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
how do i add Images in JList along with String? please help me here.
cheers,
Sachin
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DefaultListCellRenderer extends JLabel which has a constructor that takes an ImageIcon and a String. list.setCellRenderer
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!