Less than 42 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



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 icon top of the text in JList  RSS feed

 
Manoj kumar A
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a JList which lists Directories and files. By default folders/directories icons are shown at the left of the text(folder name).But i want to disply at the top of the text (folder name) like file explorer. Is this possible ?.

Please reply me as soon as possible.

Regards
Mano
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm wondering most by what you are trying to achieve using a JList to view a filesystem. With that being said though, you would have to customize your renderer to support icons above the label of text. There is not direct method to make this happen.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!