This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I'm trying to create a toolbar with a button inside. When i create an action event for the button, using the visual editor, it creates the follows wrong code: jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent ) { jButton1ActionPerformed(); } }); (missing the ActionEvent name) If i build, i obtain these errors init: deps-jar: Compiling 1 source file to C:\IvyProject\build\classes C:\IvyCon\IvyProject\src\gui_ip\Design.java:108: <identifier> expected public void actionPerformed(java.awt.event.ActionEvent ) { C:\IvyCon\IvyProject\src\gui_ip\Design.java:111: ')' expected }); C:\IvyCon\IvyProject\src\gui_ip\Design.java:127: <identifier> expected private void jButton1ActionPerformed(java.awt.event.ActionEvent ) {//GEN-FIRST:event_jButton1ActionPerformed C:\IvyCon\IvyProject\src\gui_ip\Design.java:133: ')' expected private javax.swing.JPanel dash; 4 errors BUILD FAILED (total time: 0 seconds)
Created attachment 25251 [details] the source that generates the errors.
founded the problem: the "evt" variabile name was "blanked" on the option session. I don't know why, the only operation i've done on the options was changing the flatten representation of the packages to the tree version. I've retried to reproduce the anomalous behaviour, but it seems to work now, so i've lowered the priority of the issue
Fixed. The reproducible scenario was: 1. Restart the IDE. 2. Open Options dialog - General tab is displayed. 3. Don't do anything in the dialog (even, don't select new tabs), just press OK. => the event variable name is cleared (in form options). /cvs/form/src/org/netbeans/modules/form/FormEditorPanelController.java,v new revision: 1.3; previous revision: 1.2
*** Issue 67858 has been marked as a duplicate of this issue. ***
Verified.
*** Issue 81220 has been marked as a duplicate of this issue. ***