Allows you to define a new method in your class.
With the Add Method dialog box you can:
A text box that allows you to enter the name of the method.
A dialog box that allows you to specify the return type for the method. You can select from a list of standard return type values or enter your own return type in the edit portion of the dialog box.
A text box that allows you to specify an initial return value. This return value should be of the same data type as the return type specified for the method or errors will occur during compilation.
A grid that allows you to specify the parameter names and types for your method.
A list that allows you to select an access modifier for the method. You can choose from default (package), public, private, or protected.
When this option is selected, the abstract modifier is applied to the method declaration. An abstract method must be defined in an abstract class. Also, an abstract method does not contain any implementation code.
When this option is selected, the static modifier is applied to the method declaration. The static modifier allows a method to be called without an instance of the method's class.
When this option is selected, the final modifier is applied to the method declaration. The final modifier prevents the method from being overridden by a subclass class.
When this option is selected, the synchronized modifier is applied to the method declaration. The synchronized modifier locks the method's object from being modified until after the method has completed.
When this option is selected, the native modifier is applied to the method declaration. The native modifier identifies a method as being implemented in another language such as C or C++.
A text box that allows you to create Javadoc comments for the method. The Javadoc comment allows you to document the method and any related information about the method.