• Post Reply Bookmark Topic Watch Topic
  • New Topic

Display Files without extension in a JTree  RSS feed

 
Manjula Rao
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
could any one help me with inflating a JTree component with all the files of a particular directory. i have been able to show the fle names in the JTree but i need to show only the file name NOT the extension.
thanx
Manjula
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't you sub-string off the last 4 characters?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!