• Post Reply Bookmark Topic Watch Topic
  • New Topic

viewing all Files of a single directory  RSS feed

 
Manoj Paul
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends..

say...

String path="C:\Documents and Settings\Administrator.MATRIX\My Documents\Manoj\Applets\AppletProject\images";
and the images folder has different types of image files..

What i want is to view all the files of the images directory in my swing page..

Please please please HELP ME.....!
 
Jeff Storey
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

You can use the list method of the File object as follows:



Hope this helps.
Jeff
 
Manoj Paul
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you friend...
your suggestion was of great help....
I am able to carry froward my work now.. Thank you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!