JFileChooser

Hello ,

I am using this FileChooser to choose a file :

JFileChooser chooser = new JFileChooser();

String types[]= {"csv"};

FileNameExtensionFilter filter = new FileNameExtensionFilter("csv" , types);

chooser.setFileFilter(filter);

pane.add(chooser);

setVisible(true);

The problem is that after I see the chooser and choose a file it doesn't open it when I press Open button. How to fix it? 10xs

[451 byte] By [codingGa] at [2007-11-27 5:34:14]
# 1
Did you write the code that opens the file?
jsalonena at 2007-7-12 15:02:17 > top of Java-index,Java Essentials,New To Java...