previous | start | next

## Removing Spurious Properties

    class MyBeanBeanInfo extends SimpleBeanInfo

    {

       public PropertyDescriptor[] getPropertyDescriptors()

       {

          try

          {

             return new PropertyDescriptor[]

             {

                new PropertyDescriptor("x", CarBean.class);

                new PropertyDescriptor("y", CarBean.class);

             };

          }

          catch (IntrospectionException exception)

          { return null; }

       }

    }

previous | start | next