To add simple properties to a bean, add appropriate getXXX and setXXX methods (or isXXX and setXXX methods for a boolean property).
The names of these methods follow specific rules called design patterns. These design pattern-based method names allow builder tools such as the NetBeans GUI Builder, to provide the following features:
- Discover a bean's properties
- Determine the properties' read/write attributes
- Determine the properties' types
- Locate the appropriate property editor for each property type
- Display the properties (usually in the Properties window)
- Alter the properties (at design time)