this is the snippet that produces an error saying :
')' expected
';' expected
not a statement
cannot find symbol
symbol : variable ActionEvent
The snippet :
private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) {
JFileChooser chooseToAdd = new JFileChooser();
int option = chooseToAdd.showOpenDialog(this);
if( option == JFileChooser.APPROVE_OPTION ) {
nameOfAudioFile = chooseToAdd.getSelectedFile().getAbsolutePath();
//clonejTree1ValueChanged( TreeSelectionEvent evt );
tester(java.awt.event.ActionEvent evt);
}
}
private void tester(java.awt.event.ActionEvent evt) {
System.out.println("tester");
}
Is there any syntax error ?
This line is wrong:
Here you should pass an object of the type ActionEvent.
So it should be something like this: