private void startUpload() {
        if(!Data.isLoggedIn()) {
            new FLogin(data);
        } else {
            setVisible(false);
            ArrayList<PFile> list = new ArrayList<PFile>();
            for(PFile file : Data.getFiles())
                if(file.toUpload) {
                   list.add(file);
                   //System.out.print("Dodane: " + file.getComponent(Elem.NAME));
                }
            new FUpload(list);
        } 
    }