Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Netbeans Auto Generated Code After Double-Clicking an Object in Design Tab

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?

like image 392
Kairan Avatar asked Oct 18 '12 18:10

Kairan


People also ask

How remove generated code in NetBeans?

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.

How do I terminate a program in NetBeans?

You can use Ctrl + Shift + DEL . It is defined in Tools > Options > Keymap as System > Cancel Process .


1 Answers

In the Design mode you select the particular object and click Events under Properties and remove the event from the event property

like image 102
Kairan Avatar answered Oct 13 '22 05:10

Kairan