When I add code for an event, e.g., ActionPerformed, from the Properties|Events, I click on <none> in the appropriate line, and then as soon as I press Enter, the source editor bounces around for a while (entertaining to watch…the first few times), highlights the new, automatically generated code and then scrolls to the bottom of the file, so I have to scroll up to find the highlighted code.
If I then decide to remove the code, I go back to the Properties|Events page, click on the … on the ActionPerformed line, and select Remove from the form that pops up. Most — but not all — of the generated code will be removed. The remaining code, e.g.,
private void jButton1ActionPerformed(
generates a couple of errors when the class is saved. The same thing happens if I simply remove the name from the line by backspacing or clicking and pressing delete, i.e., without bringing up the form.
Best regards,
Richard