How to override base class methods
Index
It is very easy to override base class methods under Kawa. If the base class is defined in the Kawa package hierarchy it is possible to override the methods. Please refer to explanation on Packages tab for adding/deleting packages to package hierarchy.
- In order to override the base class method, please click right button on the class item in the project tree or click on the new class wizard button in the main toolbar. For the latter please make sure the cursor in the editor is within the limits of the class body. Clicking on the toolbar wizard displays the following menu for a class that derives from Applet

- Override menu option will display all the base classes of the class and all the interfaces implemented by this class.
- Selecting a base class or an interface will display all the methods that can be overridden in another submenu as shown in the figure below.
- If
method tooltip is enabled and Java document directory is properly setup under directory options a tooltip for the method is displayed as the mouse is moved over the methods.

- An asterisk in the front of the name indicates Method with multiple overloads and methods already implemented are grayed from selection.
- DEPRECATED methods are indicated by enclosing the name of the method within [] brackets. This indicator is shown only if the JDK documentation and the documentation directory is setup properly under Customize/Options/Directory.
- Finally, selecting any one of the base class methods will automatically insert the function body for the method as shown in the figure below.
- Selecting a method with multiple overloads will display a list box with all the available methods. Selecting 'ALL' options for interfaces will insert overrides for all the methods of a given interface.
- The class wizard toolbar menu is sensitive to inner classes and inner interfaces.