Remove Netbeans Auto Generated Code After Double-Clicking an Object in Design Tab
events, java, netbeans, object, user-interface
Solution
In the Design mode you select the particular object and click Events under Properties and remove the event from the event property
Problem
So Im using Netbeans and the Design tab, placing labels, textboxes, etc. Great, however when you double-click on say a label it autogenerated this code: ``` private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } ``` Now I didn't want it to do that, but when I highlight and attempt to delete it - Netbeans does not allow me to do so. How do I go about removing this?