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..开发者_Python百科.
thank you guys...
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.
精彩评论