debug15_5beaninfo.java

来自「北京大学出版社的」· Java 代码 · 共 21 行

JAVA
21
字号
package questions.c15;
import java.beans.*;
public class Debug15_5BeanInfo extends SimpleBeanInfo {
   public PropertyDescriptor[] getPropertyDescriptors() {
      PropertyDescriptor[] pds = null;
      try {
         pds = new PropertyDescriptor[] {
            new PropertyDescriptor( "corners",
                                    Debug15_5.class ),
         };
         pds[0].setShortDescription(
            "The shape of the rectangle's corners" );
         pds[0].setBound( false );

      } catch( IntrospectionException ix ) {
         ix.printStackTrace();
         return super.getPropertyDescriptors();
      }
      return pds;
   }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?