Trail: JavaBeans(TM)
Lesson: Writing JavaBeans Components
Methods
Home Page > JavaBeans(TM) > Writing JavaBeans Components

Methods

A bean's methods are the things it can do. Any public method that is not part of a property definition is a bean method. When you use a bean in the context of a builder tool like NetBeans, you can use a bean's methods as part of your application. For example, you could wire a button press to call one of your bean's methods.


Problems with the examples? Try Compiling and Running the Examples: FAQs.
Complaints? Compliments? Suggestions? Give us your feedback.

Previous page: Properties
Next page: Events