Re: JFileChooser Please Help
so far i have this.. i can select only zip files with the JFileChooser but i don't know how to get the program to deal with the data in the text files inside the zip file.
Code Java:
//
import javax.swing.*;
import javax.swing.filechooser.FileNameExtensionFilter;
public class Main {
public static void main(String args[]){
JFileChooser chooser = new JFileChooser();
FileNameExtensionFilter filter = new FileNameExtensionFilter("zip files","zip");
chooser.setFileFilter(filter);
chooser.showOpenDialog(null);
}
}
//
Re: JFileChooser Please Help
Re: JFileChooser Please Help
Thanks alot. How do i get my JfileChooser object to to deal with the selected zip file?
Re: JFileChooser Please Help
Quote:
Originally Posted by
mulligan252
Thanks alot. How do i get my JfileChooser object to to deal with the selected zip file?
The JFileChooser.getSelectedFile() will return the file selected by the user.
java memory