JFileChooser fcStorage = new JFileChooser();
fcStorage.setPreferredSize(new Dimension(650,500));
//*fcStorage.setCurrentDirectory(file);
javax.swing.Action details = fcStorage.getActionMap().get("viewTypeDetails");
details.actionPerformed(null);
FileFilter filter = new MyFileFilter("CSV-Datei",".csv");
fcStorage.setFileFilter(filter);
//*fc.setSize(1000, 750);
chooserFrame.getContentPane().add(fcStorage);
int returnVal = fcStorage.showSaveDialog(contentPane);
if (returnVal == JFileChooser.APPROVE_OPTION) {
fcStorage.getSelectedFile().getAbsoluteFile();
System.out.println("Save: "+ fcStorage.getSelectedFile().getAbsoluteFile());
File file = (File) fcStorage.getSelectedFile().getAbsoluteFile();
//*File file = new File("D:/tmp/export.csv");
exportTableDataToCVS(table, file);
} else {
System.err.println("Save command cancelled by user.");
}
JTable jTable = (JTable) ((JViewport) ((JScrollPane) ((JPanel) ((FilePane) fcStorage.getComponents()[2]).getComponents()[0]).getComponents()[0]).getComponents()[0]).getComponents()[0];
Dimension preferredSize = jTable.getPreferredSize();
preferredSize.width = 600;
jTable.setPreferredSize(preferredSize);
JTable jTable = (JTable) ((JTable) (((JViewport) (((JScrollPane) (((JPanel) (fcStorage.getComponents()[2])).getComponents()[0])).getComponents()[0])).getComponents()[0])).getComponents()[0];
UIManager.setLookAndFeel(new javax.swing.plaf.nimbus.NimbusLookAndFeel());
UIManager.setLookAndFeel(new com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel());