l'ho modificato in questo modo....codice:JFileChooser chooser = new JFileChooser(); int returnVal = chooser.showOpenDialog(null); if(returnVal == JFileChooser.APPROVE_OPTION) { File f = chooser.getSelectedFile(); try{ FileInputStream fi = new FileInputStream(f); int available = fi.available(); link_nome_base.setText("C://DataSong/" + available); } catch(Exception e){ System.out.println(e); }
ma mi esce un numero intero!!!!!!!![]()
![]()