After creation of the Bean class, you may need to create a method that is missing at this stage of the process, such as an internal method.
- Double-click the Bean class to display its property sheet.
- Click the Operations tab, then click a blank line in the list.
An arrow is displayed at the beginning of the line.
- Double-click the arrow at the beginning of the line.
A confirmation box asks you to commit the object creation.
- Click Yes.
The operation property sheet is displayed.
- Type a name and code for your operation.
- Click the Implementation tab to display the Implementation page.
The Implementation page opens to the Body tabbed page.
- Add the method code in this page.
- Click OK.
You return to the class property sheet.
- Click the Preview tab to display the Preview page.
You can now validate the to-be-generated Java code for the Bean class.
- Click OK.