⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 textdisplayerbeaninfo.java

📁 java 完全探索的随书源码
💻 JAVA
字号:
import java.beans.*;public class TextDisplayerBeanInfo extends SimpleBeanInfo {   // override the getPropertyDescriptors method to provide that info.   public PropertyDescriptor[] getPropertyDescriptors() {      PropertyDescriptor[] properties = new PropertyDescriptor[4];      try {         properties[0] = new PropertyDescriptor( "Text String",            BeanClass, "getOutputText", "setOutputText" );         properties[1] = new PropertyDescriptor( "Text Color",            BeanClass, "getFontColor", "setFontColor" );         properties[2] = new PropertyDescriptor( "Text Font",            BeanClass, "getTextFont", "setTextFont" );         properties[3] = new PropertyDescriptor( "Background Color",            BeanClass, "getBGColor", "setBGColor" );      } catch( IntrospectionException e ) {         return( null ); // exit gracefully if you get an exception.      }      return( properties );   }   private Class BeanClass = TextDisplayer.class;}

⌨️ 快捷键说明

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