Back Forward CDK Home Reference Samples Resources
CustomProperty

 Building ShowText with a Custom AWT Property Editor

The CustomProperty JAR file is very similar to the ShowText JAR file, but contains one additional class and a minor modification to ShowTextBeanInfo.


The JAR file is constructed using a batch file, which references a manifest file which notes which file(s) in the JAR are JavaBeans:


Create CustomProperty.jar by running BuildCustomProperty.bat (or BuildCustomProperty.sh on Unix) from the (install dir)/samples/CustomProperty/ directory.

It will behave in a manner similar to ShowText, but double clicking on the icon in Inspector will bring up something that looks like:

instead of the default Inspector. Clicking the "Inspector / BeanCustomizer" bar at the top toggles between the two modes:

( return to the top of the page )