IButton.zip A Test of the Java Beans Component Technology

This archive contains source code for a Sticky Image Button. Tested with JDK1.1
and BDK1.0 release. ImageButton is based on the FancyButtonBean from
"Presenting Java Beans" by Michael Morrison, SAMS Net. I was unable to load an
image using the source code in Michael Morrison's book and the BDK1.0 release. I hope
this solution is helpful. The use of a GrayFilter is from David Flanagan's
"Java in a Nutshell" O'Reilly and Associates.

// File ImageButton.java jlouie 6.97
// Based on FancyButtonBean from "Presenting Java Beans" by Michael Morrison
// SAMS Net and GrayFilter from "Java in a Nutshell" David Flanagan O'Reilly
// A JDK1.1/BDK1.0 release version of Michael Morrisons FancyButtonBean
// that supports a gif image.
// Compile GrayFilter.java and then ImageButton.java and ImageButtonBeanInfo.java
// using: javac -d . .\ImageButton\Source\GrayFilter.java
// javac -d . .\ImageButton\Source\ImageButton.java
// javac -d . .\ImageButton\Source\ImageButtonBeanInfo.java
// Test the component using: java jlouie.beans.ImageButton
// Jar the bean using: 
// jar cfm .\imagebutton.jar jlouie\beans\ImageButton.mf 
// jlouie\beans\*.class jlouie\beans\*.gif
// Where default.gif is in the folder jlouie\beans along with the compiled class files,
// the manifest file and the BeanInfo file.
// Place the jar file in the BDK jars folder
// Test the component with the BeanBox using: c:\bdk\beanbox>run
// Add the ImageButton to the form.
// Set the isSticky property to true!
// Have fun with Java.

Jeff

