在设计选项卡中双击对象后,删除Netbeans自动生成的代码 [英] Remove Netbeans Auto Generated Code After Double-Clicking an Object in Design Tab

查看:119
本文介绍了在设计选项卡中双击对象后,删除Netbeans自动生成的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我使用Netbeans和设计选项卡,放置标签,文本框等很好,但是当您双击说标签时,它会自动生成此代码:

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:
}

现在我不想这样做,但是当我突出显示并尝试删除它 - Netbeans不允许我这样做。

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?

推荐答案

在设计模式下,选择特定对象,然后单击属性下的事件,并删除事件属性的事件

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

这篇关于在设计选项卡中双击对象后,删除Netbeans自动生成的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆