• Post Reply Bookmark Topic Watch Topic
  • New Topic

Recursively add image, audio and video files to the JTree view?  RSS feed

 
shohruh sharipov
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello folks, I know this is very simple question but it displays an error.....

So the main purpose of this program, when the user can choose a folder it have to display all the image audio and video files inside the directory recursively!!!

I did only inside one folder,not recursively, so my program works for only inside the one folder.

I mean, for example:

-D:\install
--image
---hello.png
---hi.png
--audio
---beyonce.mp3
---ne-yo.mp3
--video
---beyonce.mp4


when the user select install folder it should display:

for image folder: hello.png , hi.png
for audio folder: beyonce.mp3, ne-yo.mp3
for video folder: beyonce.mp4


Here's the my code:



So the task is display all the image, audio and video files recursively inside the directory to JTree view.

Guys, please help me to solve this it is very urgent, thanks!!!


 
Campbell Ritchie
Sheriff
Posts: 55351
157
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I am afraid people will be reluctant to read 513 lines of code, particularly with automatically‑added group layout code, so is it possible to have something smaller which shows the problem.
Why do you have menu items creating new objects and setting them visible?
And we never use the word urgent!
 
shohruh sharipov
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Is it ok now...?
Yeah maybe you are right, but I thought it will be helpful to post whole code.....
Please help if you can do this or gimme some hint to solve
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!