Witam korzystam z tutoriala i mimo tego mam cały czas błąd.
Komunikat o blędzie to run:
J:.AppData\netbeans\cache\7.3.1\executor-snippets\run.xml
Cancelled by user.
BUILD FAILED (total time: 10 seconds)
kod to:
private void otworzActionPerformed(java.awt.event.ActionEvent evt) {
int odpowiedz = jFileChooserotworz.showOpenDialog(this);
if (odpowiedz == jFileChooserotworz.APPROVE_OPTION) {
File file = jFileChooserotworz.getSelectedFile();
try {
Text.read( new FileReader( file.getAbsolutePath() ), null );
} catch (IOException e) {
System.out.println("Nie mogę otworzyć pliku: "+file.getAbsolutePath());
System.out.println("Problem: "+e);
}
}
}
Co zrobić aby plik się normalnie otwierał?