This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi all, this comes as an SOS I am developing an application using Swings I have to pick up all files with extension .dat from say a dir called "c:\chhaya". how do i go about doing this. I should show thw total number of files with .dat extension and then populate a JList which allows multiple selection with those file names. populating the JList is no problem. how do i get or search for files with a specific extension in a specific dir. Thannx in advance Please reply as soon as possible Chhaya
John Zukowski Author of <a href="http://www.amazon.com/exec/obidos/ASIN/189311578X/ref=ase_electricporkchop/107-7882751-0234939" target="_blank" rel="nofollow">"Definitive Guide to Swing for Java 2"</a>,<br /><a href="http://www.amazon.com/exec/obidos/ASIN/1893115925/ref%3Dase%5Felectricporkchop/102-5437230-7785719" target="_blank" rel="nofollow">"Java Collections"</a> and <a href="http://www.amazon.com/exec/obidos/ASIN/1893115984/ref%3Dase%5Felectricporkchop/102-5437230-7785719" target="_blank" rel="nofollow">"Learn Java with JBuilder 6"</a>
Joined: Apr 11, 2001
Thanks John, I went thru' the API but am still confused as to how i should go about implemneting FilenameFilter interface a code snippet from you would definitely help thanx PS. please reply today itself, if possible