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?
Go in the Design mode to the top window menu -> Windows -> Navigator . You will see Group "Navigator" popped up on the left (usually). Now you can delete unwanted variables (or edit them) with the right click menu.
You can use Ctrl + Shift + DEL . It is defined in Tools > Options > Keymap as System > Cancel Process .
In the Design mode you select the particular object and click Events under Properties and remove the event from the event property
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With