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 157722

Summary: Using custom adapters in Listener code generation
Product: guibuilder Reporter: sala <sala>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description sala 2009-02-01 08:28:08 UTC
If I'm using custom event handling (Listener, Event classes) Netbeans uses only the Listener class for code generation.
There is no way to specify the Adapter class, since it's not part of the javabeans specification. There should be a way
to specify the adapters for the Listener classes.

It seems to me, that some kind of adapter-listener connection is already hardwired, because the generated code uses
WindowAdapter instead of WindowListener:

addWindowListener(new java.awt.event.WindowAdapter() {
             public void windowClosing(java.awt.event.WindowEvent evt) {

I'd like Netbeans to generate similar code for my own custom event handling classes. So I'd like to force Netbeans to
use my own Adapter class instead of my own Listener interface in code generation.