This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!