Java Beans Api
Java Beans Api
AppletInitializer Methods in this interface are used to initialize Beans that are
also applets.
BeanDescriptor This class provides information about a Bean. It also allows you
to associate a customizer with a Bean.
package sunw.demo.colors;
import java.awt.*;
import java.beans.*;
public class IntrospectorDemo {
public static void main(String args[]) { try {
Class c = Class.forName("sunw.demo.colors.Colors");
BeanInfo beanInfo = Introspector.getBeanInfo(c);
BeanDescriptor beanDescriptor =
beanInfo.getBeanDescriptor();
EXAMPLE PROGRAM FOR JAVABEAN API
Events:
propertyChange
component
mouseMotion
mouse
hierarchy
key
focus
hierarchyBounds
inputMethod