| CustomProperty

Building ShowText with a Custom AWT Property Editor

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

- ShowText.java
- ShowTextBeanInfo.java
- ShowTextCustomizer.java

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

- BuildCustomProperty.bat
  (or on Unix, type `sh BuildCustomProperty.sh`)
- CustomProperty.mf

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 )