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.
The button should create and show a FileDialog or JFileChooser. Once the file is chosen, you use any of the java.io classes to read it. Of course, the applet needs to be signed to do any of this, or it won't be allowed to use these classes.
Joined: Jul 06, 2006
Actually my button should show the list of files in my system.
After that i will choose any file.
After that i know the process to read, but before that button should give the list of files..
plz respond.. PCREDDY
Joined: Mar 22, 2005
Yes, that's exactly what the classes I mentioned do. If you're having trouble using them, you can read up JFileChooser here and on FileDialog here.