File file = fileChooser.getSelectedFile();
final File file = fileChooser.getSelectedFile();
    private void dateiListeImportieren() {        JFileChooser fileChooser = new JFileChooser();        fileChooser.setDialogType(JFileChooser.OPEN_DIALOG);        fileChooser.setFileFilter(new TxtFileFilter());        fileChooser.setDialogTitle(menuItemDateiliste.getText());        fileChooser.setMultiSelectionEnabled(false);        int i = fileChooser.showOpenDialog(this);        if (i == JFileChooser.APPROVE_OPTION) {            File file = fileChooser.getSelectedFile();            if (file.isFile()) {                BufferedReader reader = null;                try {                    reader = new BufferedReader(new                                                FileReader(file));                    String line = "";                    while ( (line = reader.readLine()) != null) {                        if (line.compareTo("100") == 0) {                            break;                        }                    }                    String size = "";                    String filename = "";                    String checksum = "";                    String link = "";                    ApplejuiceFassade af = ApplejuiceFassade.getInstance();                    while ( (line = reader.readLine()) != null) {                        filename = line;                        checksum = reader.readLine();                        size = reader.readLine();                        if (size != null && checksum != null) {                            link = "ajfsp://file|" + filename + "|" + checksum +                                "|" + size + "/";                            af.processLink(link);                        }                    }                }                catch (FileNotFoundException ex) {                    //nix zu tun                }                catch (IOException ex1) {                    //nix zu tun                }            }        }    }