import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class Main extends MIDlet implements CommandListener{ Display display; List list; FileBrowser browser; public Main(){ if (display == null){ display = Display.getDisplay(this); browser = new FileBrowser(); } } public void startApp(){ String[] paths = browser.getList("file:///","*"); list = new List("LIST",Choice.IMPLICIT, paths, null); display.setCurrent(list); } public void pauseApp(){} public void destroyApp(boolean flag){} public void commandAction(Command c, Displayable d){} }