How to create anomymous inner class adaptors rather than standard adaptors

Obsah: How to create anomymous inner class adaptors rather than standard adaptors

  • Product Name: JBuilder
  • Product Version: 2006
  • Product Component:�Event Handling

Issue:

How to create anomymous inner class adaptors rather than standard adaptors

Solution:

To specify the style of event adapters JBuilder generates,
�� 1. Choose Project|Project Properties.
�� 2. Select the Formatting page.
�� 3. Select the Generated tab inside the Formatting page.
�� 4. Under Event Handling options, choose either Standard Adapter or Anonymous Adapter.
����� If you want the generated code to match existing event handlers, check the Match Existing Code option.
�� 5. Click OK.
To choose a default event adapter style for all new projects,
�� 1. Choose Project|Default Project Properties.
����� This opens the Project Properties dialog box.
�� 2. Choose Java Formatting|Generated.
�� 3. Under Event Handling options, choose either Standard Adapter or Anonymous Adapter.
����� If you want the generated event handling code to match existing event handlers, check the Match Existing Code option.
�� 4. Click OK.

Author:� WeiKeong Ho