开发者

displays song from folder to jlist

开发者 https://www.devze.com 2023-02-18 23:17 出处:网络
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百科.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消