* @param path directory location
*/
public void directoryWalk(String path) {
files.removeAllElements();
try {
FileConnection fc = (FileConnection) Connector.open(path, Connector.READ);
Enumeration fl = fc.list("*.jpg", true);
while(fl.hasMoreElements()) {
files.addElement((String) fl.nextElement());
}
fc.close();
}
catch (SecurityException e) {
System.out.println("SecurityError: " + e.getMessage());
}
catch (IOException e) {