Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

To add Icons along with text in a JList[urgent.........]  RSS feed

 
netharam ram
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have Jlist that lists the files & folders in a specified path.I want to differentiate folders from files,so I wish to add a folder icon along with the folder path in the Jlist.Is this Possible?Please reply me as soon as possible.Nathan please do reply this post!!!
Happy middling with java.
Netharam. :roll:
[ January 26, 2002: Message edited by: netharam ram ]
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Netharam,
Yes it is possible. I have never done it personally but take a look at the following link and you should be able to figure out how to do it for a list (similar to ComboBox).
http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html#renderer
Regards,
Manfred.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!