This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269973

Summary: How can I add @Override-Annotations in FormDesigner
Product: guibuilder Reporter: tauner87
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: The Source File where you can see, that the @Override-Annotation is missing

Description tauner87 2017-03-03 12:56:56 UTC
Created attachment 163753 [details]
The Source File where you can see, that the @Override-Annotation is missing

Hi.

I have a question:
When I add a new File which contains a formFile (for Example go to the package:
klick with the mouse right button -> New -> JPanel Form...)
then I work in the file and add for example a button and make a double click on the button.
Then there is automatically generated an inner Class FormListener which implements ActionListener, WindowListener,...

The inner class implements actionPerformed, etc.
But: The Designer doesn't add the @Override-Annotation.

Now my question: Is there any possibility that I can "control" the generation of 
the FormListener (for Example: If I go into the Design-View, click onto a component and go to code i can enter Post-Creation Code,...) or that I can tell Netbeans to automatically add the Annotation, if he creates the FormListener in the Designer?

I've add an attachment, so that you can imagine better, what I mean.