can anyone here give me a view or idea on how to get the songs from a folder and displays it to jlist? i have no idea on how to start doing this…
thank you guys…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Step one should be defining what song is and where the source folder is, after that everything is easy.
What You need is class File and of course Jlist.
Using file object, you will be able to specify a filter and retrieve proper files.
When you will have list of files then you should read this (How to use Lists) tutorial.
EDIT:
What song is ?
The song might be a file that have specific extension usually this is .mp3, .wav.
So when we are trying to find songs in a folder really we are looking for multimedia files.